faazz Posted August 28, 2013 Share Posted August 28, 2013 Hi, We'd like to create different sets of discounts based on the total amount of purchase. For e.g., 20% discount for $500-$600 and 30% discount for $600-$800. How is this achievable? The Cart Rules only has the "minimum amount" option when I create a new rule. Regards Link to comment Share on other sites More sharing options...
e21media Posted August 28, 2013 Share Posted August 28, 2013 Hi, We'd like to create different sets of discounts based on the total amount of purchase. For e.g., 20% discount for $500-$600 and 30% discount for $600-$800. How is this achievable? The Cart Rules only has the "minimum amount" option when I create a new rule. Regards Hi, Have you tested with both minimum amounts? What are the results? Link to comment Share on other sites More sharing options...
faazz Posted August 28, 2013 Author Share Posted August 28, 2013 But how can I? I need to specify a range Link to comment Share on other sites More sharing options...
e21media Posted August 28, 2013 Share Posted August 28, 2013 Am suggesting you test with both conditions and see if the higher is only met upon purchase. Let me know. Otherwise can look at your installation for you. Link to comment Share on other sites More sharing options...
shaktishakya Posted February 3, 2015 Share Posted February 3, 2015 Hi, I need to have the same thing in my cart rule. Has anyone succeeded to get the total order amount range to work? Link to comment Share on other sites More sharing options...
VinYa Posted March 8, 2016 Share Posted March 8, 2016 Any fix on this? Link to comment Share on other sites More sharing options...
trevorgilligan Posted October 24, 2017 Share Posted October 24, 2017 So this might help people. I was looking to set a max amount. As standard there is a min amount. So it was a simple change of 1 character. Go here Home/classes/CartRule.php Find and change: if ($cartTotal < $minimum_amount) return (!$display_error) ? false : Tools::displayError('You have not reached the minimum amount required to use this voucher'); to if ($cartTotal > $minimum_amount) return (!$display_error) ? false : Tools::displayError('You have exceeded the maximum allowable amount to use this voucher'); Im sure also if you want between amount hard coded could be if ($minimum_amount < $cartTotal < 100 ) Link to comment Share on other sites More sharing options...
akashs Posted September 18, 2018 Share Posted September 18, 2018 i also create this problem so can i create saprate max filed some othe solution is here Link to comment Share on other sites More sharing options...
akashs Posted September 19, 2018 Share Posted September 19, 2018 i have resolve this problem Go here Home/classes/CartRule.php and than find autoAddToCart function and add this function if($cartTotal > 350) { $context->cart->addCartRule(12); } cart rule add in admin panel and set addcartrule id Thanks akash sen 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