Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. foreach($storeviews as $storeviewId) {
  2. $result = $client->call(
  3. $session,
  4. 'catalog_product_attribute_media.list',
  5. $productId,
  6. $storeviewId
  7. );
  8.  
  9. foreach($result as $image) {
  10. $client->call(
  11. $session,
  12. 'catalog_product_attribute_media.update',
  13. [
  14. $productId,
  15. $image['file'],
  16. [
  17. 'types' => null,
  18. ]
  19. ],
  20. $storeviewId
  21. );
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement