We have a multi-store with a bunch of products.

For certain categories in specific store views, I'd like to set all products to be in a particular store. Advice on how to achieve this would be greatly appreciated.

One of my biggest missing pieces is how to programmatically set the "Product in Stores" for each product -- I could probably figure out the rest from there. But yes, any thoughts would be appreciated.

  • have u got solutions? programmatically – Navin Bhudiya Mar 9 '20 at 8:59

You can easily assign products to different stores from adminpanel. Go to products grid catalog->products select all products or select selected products. Then click on actions dropdown from top left corner. Select Update Attribute then select websites. After that select specific store view's then save.

  • question was to add products programmatically. surprised to see this as an accepted answer. – VishalParkash Jan 15 at 10:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.