Questions tagged [json]

This tag should be used for questions related to json data types

Filter by
Sorted by
Tagged with
23
votes
9answers
34k views

How to update magento2 from 2.0.0 to 2.0.2

The docs here say that you should use the system upgrade utility: http://devdocs.magento.com/guides/v2.0/comp-mgr/upgrader/upgrade-start.html and do it from the admin. I thought that you would be ...
5
votes
3answers
20k views

Magento2 - How to get JSON response from Controller [closed]

I've created my custom controller and I want to return the result formated with JSON. I always get a JSON parse error "JSON.parse: unexpected character at line 1 column 1 of the JSON data" and the ...
7
votes
4answers
18k views

How do I get a response from REST API in JSON format in Magento 2?

I used the resources in “Creating a New REST Web Service in Magento 2” and “Creating a New REST Web Service in Magento 2” to create a custom API module, but the response is in XML format. I need a ...
2
votes
3answers
767 views

I have one json file of all products, and now I want to display only those products of current categories?

$baseUrl = $this->getBaseUrl(); $skinUrl = $this->getSkinUrl(); $currcategory = Mage::getSingleton('catalog/layer')->getCurrentCategory(); $products = file_get_contents('c_node.json'); $arr = ...
1
vote
2answers
3k views

Create block over ajax Magento 2

I want to send block html in JSON response. To be specific - I want to add functionality where customers are able to edit their addresses via Ajax requests. So the block class will be \Magento\...
3
votes
2answers
3k views

Price not updating on Configurable products after upgrade to Magento 1.9.3

I think I may have found a bug in Magento CE 1.9.3 which was released last week? I upgraded our Staging environment to it and have found that the pricing of Configurable products is not updating ...
2
votes
0answers
121 views

curl and json approve conversion Rest API

i'm currently coding a little api for extole approve conversion api. It's only suppose to send data on declined orders which is equal to cancelled in the magento admin. Here is what i have written ...
1
vote
1answer
185 views

something is wrong in the code. theows an error->getNodeChildrenData() must be an instance of Varien_Data_Tree_Node,on line 18 [duplicate]

<?php class Ab_CategoryObserver_Model_Observer{ public function updateTopMenuJson(Varien_Event_Observer $observer){ $_helper = Mage::helper('catalog/category'); $_categories = $...
0
votes
4answers
345 views

How to write function for getting subcategories of particular category?

function productDescription() { $_helper = Mage::helper('catalog/category'); $category = Mage::getModel('catalog/category')->load($categoryId); $_categories = $category->...
0
votes
2answers
81 views

What to do exactly? my code throw an error -> 'Call to undefined function getNodeChildrenData()'

class Ab_CategoryObserver_Model_Observer{ public function updateTopMenuJson(Varien_Event_Observer $observer){ $_helper = Mage::helper('catalog/category'); $_categories = $_helper->...