Created
February 2, 2016 10:41
-
-
Save dleone81/d78500a5c9e3141f584c to your computer and use it in GitHub Desktop.
Magento update custom attribute via API SOAP2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$proxy = new SoapClient("http://www.mydomain.com/api/v2_soap/?wsdl"); | |
$sessionId = $proxy->login("myuser", "mypass"); | |
$update_data = array ( | |
'additional_attributes' => array ( | |
'single_data' => array ( | |
array ('key' => 'foreign_visibility', 'value' => '1') | |
) | |
) | |
); | |
// and the update call | |
$update = $proxy->catalogProductUpdate($sessionId, '2@0215', $update_data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment