cancel
Showing results for 
Search instead for 
Did you mean: 

disable "Minimum Order Amount" for free orders

SOLVED

disable "Minimum Order Amount" for free orders

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: disable "Minimum Order Amount" for free orders

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

View solution in original post

2 REPLIES 2

Re: disable "Minimum Order Amount" for free orders

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

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