Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach($storeviews as $storeviewId) {
- $result = $client->call(
- $session,
- 'catalog_product_attribute_media.list',
- $productId,
- $storeviewId
- );
- foreach($result as $image) {
- $client->call(
- $session,
- 'catalog_product_attribute_media.update',
- [
- $productId,
- $image['file'],
- [
- 'types' => null,
- ]
- ],
- $storeviewId
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement