B
B
beginner2016-07-18 15:36:56
Ruby on Rails
beginner, 2016-07-18 15:36:56

How to pass storeView parameter to request (MagentoAPI, SOAP) using 'savon' gem?

the response to such a request is:
$response = $client.call(:call){message :session => $session, :method=> 'category.tree', "parent_id"=> 1 }.body[:call_response][ :call_return][:item]
but I need a category tree for a specific storeView!
$response = $client.call(:call){message :session => $session, :method=> 'category.tree', "parent_id"=> 1, "storeView"=> 10 }.body[:call_response] [:call_return][:item]
This request comes up with this:
Savon::SOAPFault: (SOAP-ENV:Client) Error cannot find parameter
how to pass storeView's id parameter?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question