Jump to content

SQL statement to add comment criterion to all products?


Recommended Posts

  • 1 month later...

Guys,

I had the same problem and I solved it with this SQL:

INSERT INTO ps_product_comment_criterion_product (id_product, id_product_comment_criterion) SELECT id_product, (3) FROM ps_product GROUP BY id_product;



I only have one criterion called "Score". This criterion has ID number 3 on my DB, so you need to change that ID and that it's all.

With that SQL I put criterion "Score" on all my products in a batch.

Regards.

PD: My PS version is 1.3.6, so be caureful with other versions.

Link to comment
Share on other sites

  • 4 weeks later...
  • 7 years later...

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...