Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Minimum allowed order total in Reboot Skin

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 01-14-2021, 03:33 AM
 
memis memis is offline
 

Member
  
Join Date: Aug 2013
Posts: 11
 

Default Minimum allowed order total in Reboot Skin

Hello,

If anyone can please help on that. We have set the "Minimum allowed order total" to 5 (or any other number), but the error message does not appear when someone tries to submit an order with value less that the value we set.



The "err_checkout_not_allowed_msg" is as follows:


A minimum order subtotal of {{value}} is required to checkout.<br />
Please review your cart.


So, the customer clicks on "Submit" again and again, but he remains on the Cart page, without getting any message to explain why he cannot proceed to checkout.


Have you any idea? We are running on 4.6.3 with Reboot template


Thanks in advance!!
__________________
Xcart 4.6.3
Reply With Quote
  #2  
Old 01-25-2021, 02:38 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,943
 

Default Re: Minimum allowed order total in Reboot Skin

Hi Memis, try the demo, add this product to cart and try to checkout. It should show a red alert message at the top of the page.

You're on an old x-cart version, you might want to consider upgrading.
__________________
XCARTMODS.CO.UK | reBOOT Template | Changelog
Reply With Quote
  #3  
Old 01-25-2021, 04:26 AM
 
memis memis is offline
 

Member
  
Join Date: Aug 2013
Posts: 11
 

Default Re: Minimum allowed order total in Reboot Skin

Hi Phil,
It works fine on the demo. The question is why it doesn't work properly on our case. i am not sure if it is an issue of the xcart or the reboot template.

I suspect it is the reboot, because, as far as i remember, it never worked properly with this function of minimum allowed order.



Yes, you are right, we have to upgrade. I just thought that this minor issue would be easy to address before the upgrade, so that we manage to avoid all relevant customer complaints that we do not mention about the minimum amount.
__________________
Xcart 4.6.3
Reply With Quote
  #4  
Old 01-25-2021, 04:32 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,943
 

Default Re: Minimum allowed order total in Reboot Skin

Are you using Amazon Pay? I say that, as according to the changelog there was a relatively recent bug fix...

[!] 26 Dec 2017, aim - Bug (Y:148563, B:0048833): [Amazon Pay] did not work correctly with the Maximum allowed total quantity of products in an order / Maximum allowed order subtotal / Minimum allowed order subtotal settings. Fixed.

No-one else has reported an issue with minimum subtotal.
v4.6.3 is nearly 7 years old, so might be trickly to debug.
__________________
XCARTMODS.CO.UK | reBOOT Template | Changelog
Reply With Quote
  #5  
Old 01-26-2021, 04:10 AM
 
memis memis is offline
 

Member
  
Join Date: Aug 2013
Posts: 11
 

Default Re: Minimum allowed order total in Reboot Skin

No, we are not using amazon pay at all.
__________________
Xcart 4.6.3
Reply With Quote
  #6  
Old 01-26-2021, 04:26 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,943
 

Default Re: Minimum allowed order total in Reboot Skin

The file to check is /include/func/func.cart.php
Code:
function func_cart_check_maxmin_limits_n_redirect($cart)
In our latest reBOOT template, we put a static alert message in the cart, so as a workaround you could do the same...

DEMO

In /skin/reboot/customer/main/cart.tpl

Add this code wherever you like...

Code:
{if $config.General.minimal_order_amount ne 0 && $cart.display_subtotal lt $config.General.minimal_order_amount} <div class="alert alert-danger"> {assign var="symbol" value="$"} {assign var="minimal_order_amount" value="<b>`$symbol``$config.General.minimal_order_amount|string_format:"%.2f"`</b>"} {$lng.err_checkout_not_allowed_msg|substitute:"value":$minimal_order_amount} </div> {/if}
__________________
XCARTMODS.CO.UK | reBOOT Template | Changelog
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:48 PM.

   

 
X-Cart forums © 2001-2020