sibrodo Posted February 10, 2016 Share Posted February 10, 2016 Hello, I tried to execute the following code: if (($cartRule = new CartRule(CartRule::getIdByCode($code))) && Validate::isLoadedObject($cartRule)) { $is_applied = $this->context->cart->addCartRule($cartRule->id); echo "<pre>"; print_r($is_applied); die(); Tools::redirect('index.php?controller=order-opc'); } however, it returns nothing at all (what-so-ever). I am using Prestashop 1.5.4 for this code. Can anyone help me why this is happening ? Am i missing something ? Cheers, Rama Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now