AFemaleProdigy Posted October 3, 2012 Share Posted October 3, 2012 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 More sharing options...
ankit94 Posted October 15, 2012 Share Posted October 15, 2012 I am facing the same issue. Looks like a bug. Link to comment Share on other sites More sharing options...
ankit94 Posted October 17, 2012 Share Posted October 17, 2012 (edited) 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 October 17, 2012 by ankit94 (see edit history) Link to comment Share on other sites More sharing options...
AFemaleProdigy Posted October 18, 2012 Author Share Posted October 18, 2012 (edited) 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 October 18, 2012 by AFemaleProdigy (see edit history) Link to comment Share on other sites More sharing options...
AFemaleProdigy Posted October 27, 2012 Author Share Posted October 27, 2012 I did confirm that replacing the d with an s does work with 1.5.0. Link to comment Share on other sites More sharing options...
ankit94 Posted October 28, 2012 Share Posted October 28, 2012 Thanks for confirming. I did not try on PS1.4. Link to comment Share on other sites More sharing options...
AFemaleProdigy Posted November 28, 2012 Author Share Posted November 28, 2012 After doing an upgrade, I realized the problem is back. So PS needs to fix this asap. I had a lot of people not ordering because they didn't know how to get passed that. I had to go in and edit that file again. Link to comment Share on other sites More sharing options...
benjamin utterback Posted November 28, 2012 Share Posted November 28, 2012 Ankit94 thanks for the solution. Jessica, I submitted the GitHub Pull Request here https://github.com/PrestaShop/PrestaShop It's easy to sign up and submit these changes. Try it out! That's the beauty of Open Source. 1 Link to comment Share on other sites More sharing options...
todaytonight Posted November 29, 2012 Share Posted November 29, 2012 It doesn't work in v1.5.2 Link to comment Share on other sites More sharing options...
AFemaleProdigy Posted December 5, 2012 Author Share Posted December 5, 2012 It doesn't work in v1.5.2 It actually does work. I did it and it worked fine. Make sure to turn on force compile and refresh your page to see the changes. Link to comment Share on other sites More sharing options...
Recommended Posts