Jump to content

Can't have the Cart total for a CartRule


Mehdib92
 Share

Recommended Posts

Hi,

 

I'd like to change the way that the cart rule works.

 

In order to do that, I check if the cart rule's reduction amount is higher than the cart total for the products. 

 

If it's the case, it use product + shipping instead of only the product.

 

But in my CartRule.php class, if I want the result of getOrderTotal($use_tax, Cart::BOTH) (or even getOrderTotal($use_tax, Cart::ONLY_SHIPPING)),  instead of getOrderTotal($use_tax, Cart::ONLY_PRODUCTS), I have a Fatal error : memory limit, even if I put the memory limit to 512Mo.

 

How can I know where it comes from ?

 

Thanks

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