Jump to content

Get a product w/ multishop


Elitius

Recommended Posts

Hi,

 

Since few days I'm trying to get a product in my module but its seems complicated.

I'm using the multishop feature, I got 3 shops, and many products are in two or three shops.

I want to get global product values (as I see thems in the ps_product table or when I select 'all shops' in BO) and update it once, I dont want to create one instance by shop, because they are same values.

 

So when I construct a product, I'm using this:

$ps_product = new Product((int)5000, false, $this->context->language->id, 0, $this->context);

But Its returning only null values.

 

If I set the correct default id shop instead of 0, its working.

So there is my question: how can I construct my product no matter on which shop he is ?

 

Thanks for you help :)

Edited by Elitius (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...