0

I would like to update categories in a specific store view via the SOAP API. Below is the code I'm using:

$catu = '628';
$store = '9';
$cat = "name2";


$proxy = new SoapClient('http://example.com/api/v2_soap/?wsdl'); 

$sessionId = $proxy->login((object)array('username' => 'user', 'apiKey' => '00000'));

$result = $proxy->catalogCategoryUpdate((object)array('sessionId' => $sessionId->result, 'categoryId' => $catu, 'categoryData' => ((object)array(
        'name' => $cat,
        'description' => $cat,
        'meta_title' => $cat.': text',
        'url_key' => ''
    )), 'storeView' => $store));

This updates the category in all views even if I enter a value for storeView arg. I followed the devdocs of Magento: https://devdocs.magento.com/guides/m1x/api/soap/catalog/catalogCategory/catalog_category.update.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.