Magento minimum order amount before discount

We have a Magento store that makes use of “Shopping Cart Price Rules” and minimum order amount. We realised that by default, the minimum order amount is validated after the discount is applied which did not make sense because if the order about is more than the minimum amount the validation should pass, meaning the discounted value should not matter. That means, the minimum about should be validated before discount.

There is a work around:

Copy the file:

app/code/core/Mage/Sales/Model/Quote/Address.php

to

app/code/local/Mage/Sales/Model/Quote/Address.php

Inside the function validateMinimumAmount()

Replace

with

About me

profileSangay Tenzin
Web Developer, Magento, Concrete5, Wordpress, Shopify, Ecommerce, Website all-rounder, Casual blogger…

Love… Happiness…

About me

profileSangay Tenzin
Web Developer, Magento, Concrete5, Wordpress, Shopify, Ecommerce, Website all-rounder, Casual blogger…

Love… Happiness…

Category
Archive
Download

Downloads

Bhutanese Calendar
གནམ་ལོ་ མེ་མོ་བྱ་ལོ།

Fire Female Bird Year 2017

འབྲུག་ཟླ་ བརྒྱད་པ - དགུ་པ།

October 2017

ཟླ་བ Sun
མིག་དམར Mon
ལྷག་པ Tue
ཕུར་བུ Wed
པ་སངས Thu
སྤེན་པ Fri
ཉི་མ Sat
༡༡ 1
༡༢ 2
༡༣ 3
༡༤ 4
༡༥ 5
༡༦ 6
༡༧ 7
༡༨ 8
༡༩ 9
༢༠ 10
༢༡ 11
༢༢ 12
༢༣ 13
༢༥ 14
༢༦ 15
༢༧ 16
༢༨ 17
༢༩ 18
༣༠ 19
20
21
22
23
24
25
26
27
28
29
༡༠ 30
༡༡ 31

Powered by Bhutanese Calendar