propolis Posted June 28, 2003 Posted June 28, 2003 Hi, I have implemented code that when a user is below the stores minimum order value, it displays a warning to the user. So what I then did is I went to the QTY box, highlighted the 1 and entered 2. Now I went and clicked on Update. The Shopping Basket box on the right changed the values to reflect the correct price, but the checkout page still says 'A minimum order amount of ?10.00 is required in order to checkout'. If you click checout, its all fine and you can progress further. How can I refresh the page (browser refresh doesnt do it either) so that after you update the QTY value, the 'A minimum order amount of ?10.00 is required in order to checkout' message will go away. Cheers
Guest Posted June 29, 2003 Posted June 29, 2003 This is what I have in my checkout_shipping.php: // check for minimum order if ( $cart->show_total() > 0 ) { if ( $cart->show_total() < MIN_ORDER ) { tep_redirect(tep_href_link(FILENAME_MIN_ORDER, '', 'NONSSL')); } } Just tested it... works fine after the cart update :shock:
propolis Posted June 29, 2003 Author Posted June 29, 2003 Hi, Thank you for the response. The code I used is from the following contribution: Minimum Order Amount in Features updated 05/18/2003 Zip file: min_order_v1_1 Now I have tried your code and it still does the same. If I change the QTY value, it takes me over the min requirement value. Click update, the page refreshes, the checkout box on the right has been updated, but the warning to the user is still being displayed. Just to clarify the situation. Eddie
Guest Posted June 30, 2003 Posted June 30, 2003 I think I use the older version by the sounds..impossible to tell without seeing the code for the page that is giving problems.... :shock:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.