karxix Posted January 17, 2020 Share Posted January 17, 2020 Hello I have a script that programmatically imports a CSV file to update product prices & weights I have a multi-store setup The problem I am facing is that the script seems to only update the price & weight in the default shop, not the correct one, but the description updates in the correct shop This is the code: $Product = new Product((int)$id_product, null, null, $this->shopId); $Product->name = self::createMultiLangField($name); $Product->description_short = self::createMultiLangField($shortDescription); $Product->description = self::createMultiLangField($description); $Product->weight = $weight; $Product->price = $price; $Product->update() Any help would be greatly appreciated as this has been boggling my mind tahnks Link to comment Share on other sites More sharing options...
Magicalname Posted January 17, 2020 Share Posted January 17, 2020 Hey, Try to change in first line $this->shopId To The ID of the shop you want to change Link to comment Share on other sites More sharing options...
karxix Posted January 28, 2020 Author Share Posted January 28, 2020 it is already the id of the shop Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now