Jump to content

I can see the product in the DB but not in the shop


4GLte.eu

Recommended Posts

Hi there,

 

Yes you right I have a mixture of shop_Id 1 and 2

 

Two mire questions: 

 

1. Some records I can change manually without any problems but other gives me an error:

 

Error
SQL query: Edit Edit
 
UPDATE  `DB_presta`.`ps_product_shop` SET `id_shop` =  '2' WHERE `ps_product_shop`.`id_product` =5 AND `ps_product_shop`.`id_shop` =1
 
MySQL said: Documentation
 
#1062 - Repeated occurrence of '5-2' for key 'PRIMARY'
 
2. How can I move all products to shop_id 2  ? (we dont use shop_id 1 anymore)
Edited by 4GLte.eu (see edit history)
Link to comment
Share on other sites

#1062 - Repeated occurrence of '5-2' for key 'PRIMARY'

 
2. How can I move all products to shop_id 2  ? (we dont use shop_id 1 anymore)

 

Looks like there was already a product 5 defined for shop2. Did you check that?

 

Also note that you would need to change shop id's in the ps_product_lang table too. Not to mention that you will face even more trouble if you use optional features like combinations and discounts.

  • Like 1
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...