Skip to content

Instantly share code, notes, and snippets.

@dleone81
Created February 2, 2016 10:41
Show Gist options
  • Save dleone81/d78500a5c9e3141f584c to your computer and use it in GitHub Desktop.
Save dleone81/d78500a5c9e3141f584c to your computer and use it in GitHub Desktop.
Magento update custom attribute via API SOAP2
<?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