Jump to content

How to create a group restricted cart rule with PHP ?


masterblaster
 Share

Recommended Posts

I need to create a group restricted CartRule in a PHP script I am building that it is interacting with PS 1.6 database ,

but I can't find a way to assign the rule to some restricted customer groups.

 

I see that the CartRule object have a boolean $group_restriction variable 

but I can't really figure out how to fill up the "ps_cart_rule_group"

with groups of my interest  by using Prestashop code to the CartRule I just created.

 

Any advice ?

 

Thank you.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More