Jump to content

How to restrict Cart Rule to one product?


Recommended Posts

Hello,

I created a Cart Rule programmatically and now i want to restrict it to one product only.

Is there some method to do it or should i manually set $product_restriction to 1, and then insert values to ps_cart_rule_product_rule_group and ps_cart_rule_product_rule_group tables? How would you do it?

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