喜与Magento的一个问题,因为它让我看到这个错误,当我点击太阳镜菜单: Notice: Use of undefined constant id - assumed 'id' in /var/www/app/design/frontend/glassesonline/default/template/mana/filters/items/list.phtml on line 159
这是代
在magento中,我们使用REST URL访问数据,因为它以XML格式返回http://localhost/magemto/api/rest/products。 但作为我的团队要求,我应该以JSON格式发送数据以轻松访问AJAX调用。我已经使用REST客户端将头部包含为“Content-Type:appilcation/json”。然后返回JSON格式..但我希望它默认由magento API