Magento Asked on November 17, 2021
I’m using SOAP to update META-data
for a specific storeview. Basically I have a localised string where I add the product name to the actual text. However, for some reason I get the default name and not the store specific name. I have added the storeview code NO
(Norwegian) to the call.
$client = new SoapClient('https://www.MY_DOMAIN/api/soap/?wsdl');
$session = $client->login('MY_USER', 'MY_PASS');
$_product = $client->call($session, 'catalog_product.list', array(),'no');
foreach($_product AS $val){
echo $val['name']; //Output default name and not storeview name
$meta_title = 'Köp ' . $val['name'] . ' på minbutik.com ';
//Update code to follow which work and update
}
Does this help? https://stackoverflow.com/questions/25299663/magento-api-soap-filter-website-ids-error
So:
$filters = array(
'filters' => array(
'status' => 1,
'type_id' => 'simple',
),
'storeView' => 'no'
);
$_product = $client->call($session, 'catalog_product.list',$filters);
Answered by Andreas on November 17, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP