X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Minimum allowed order total in Reboot Skin (https://forum.x-cart.com/showthread.php?t=78114)

memis 01-14-2021 03:33 AM

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!!

PhilJ 01-25-2021 02:38 AM

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.

memis 01-25-2021 04:26 AM

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.

PhilJ 01-25-2021 04:32 AM

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.

memis 01-26-2021 04:10 AM

Re: Minimum allowed order total in Reboot Skin
 
No, we are not using amazon pay at all.

PhilJ 01-26-2021 04:26 AM

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}



All times are GMT -8. The time now is 04:15 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.