Jump to content

Problem with minimum purchase total.


Recommended Posts

I have set the minimum purchase total to $5.00, but front office is showing the following when a user tries to buy less that $5.00...

 

"A minimum purchase total of 0 is required in order to validate your order."

 

Note that is says zero instead of five dollars. I have tried saving the setting several times, clearing cache, and force compile, but it is not updating. I am using the default template/theme.

 

Thanks!

Link to comment
Share on other sites

  • 2 weeks later...

It is definitely a bug and here is the sultion:

 

1. Open file prestashop_1.5.1.0\controllers\front\OrderOpcController.php

2. Search for "A minimum purchase total of"

3. In this line you will see following statement:

 

Tools::displayError('A minimum purchase total of %d is required in order to validate your order.'),

 

4. Replace the %d with %s and it works !!!

 

You also need to do the same for prestashop_1.5.1.0\prestashop\controllers\front\OrderController.php

 

Ankit

www.ankitjain.info

Edited by ankit94 (see edit history)
Link to comment
Share on other sites

ankit94, I am using 1.4.7.3 for the particular store I am experiencing this issue with. So the directory/file structure is different. I found orderController.php and this code...

 

$this->errors[] = Tools::displayError('A minimum purchase total of').' '.Tools::displayPrice($minimalPurchase, $currency).
  ' '.Tools::displayError('is required in order to validate your order.');

Edited by AFemaleProdigy (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
×
×
  • Create New...