Jump to content

php add voucher code to cart


extremist

Recommended Posts

If You hav 1.5 You must use /classes/CartRule.php in this forum you Can find that

 

My question is how add restriction to some specific products or category

i add:

$cart_rule->product_restriction = 1;

$cart_rule->cart_rule_restriction = 1;

but where i can chose specific product or category?

 

Ok i find function in AdminCartRulesController.php
    protected function afterAdd($currentObject)

 

But i don't now how to use it :/

Edited by aneheli (see edit history)
  • 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...