--- layout: m1x_soap title: Current Store ---
Aliases:
Allows you to set/get the current store view.
Aliases:
Arguments:
| Type | Name | Description |
|---|---|---|
| string |
sessionId |
Session ID |
| string |
storeView |
Store view ID or code (optional) |
Returns:
| Type | Name | Description |
|---|---|---|
| int | storeView | Store view ID |
$client = new SoapClient('http://magentohost/api/soap/?wsdl');
// If somestuff requires api authentification,
// then get a session token
$session = $client->login('apiUser', 'apiKey');
$result = $client->call($session, 'catalog_product_attribute.currentStore', 'english');
var_dump ($result);
$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy->login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary
$result = $proxy->catalogProductAttributeCurrentStore($sessionId, 'english');
var_dump($result);