- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2019
05:29 AM
09-08-2019
05:29 AM
how can i set up Minimum Order Amount but at the same time allow free products to be ordered ? when i try to checkout with a free product i get the Minimum Order Amount error.
i only want this error to be given to orders that have a price that is greater than 0
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2019
06:06 AM
09-08-2019
06:06 AM
found it.
i changed
if ($this->getBaseSubtotalWithDiscount() < $amount) { return false; }
to
if ($this->getBaseSubtotalWithDiscount() < $amount) { if ($this->getBaseSubtotalWithDiscount() > 0) { return false; } }
in
app/code/core/Mage/Sales/Model/Quote/Address.php
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2019
06:06 AM
09-08-2019
06:06 AM
found it.
i changed
if ($this->getBaseSubtotalWithDiscount() < $amount) { return false; }
to
if ($this->getBaseSubtotalWithDiscount() < $amount) { if ($this->getBaseSubtotalWithDiscount() > 0) { return false; } }
in
app/code/core/Mage/Sales/Model/Quote/Address.php
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2019
07:49 AM
09-08-2019
07:49 AM
Re: disable "Minimum Order Amount" for free orders
Hi @yakir_yakir,
I will suggest to override this file into local folder or custom module.
Otherwise it will be replaced when you upgrade Magento version.
Copy updated file at below path:
app/code/local/Mage/Sales/Model/Quote/Address.php
I will suggest to override this file into local folder or custom module.
Otherwise it will be replaced when you upgrade Magento version.
Copy updated file at below path:
app/code/local/Mage/Sales/Model/Quote/Address.php