No Minimum Order Value For New Orders Placed Via Admin

Last question of the night!

In my old version of CS Cart, Orders placed by customers were subjected to the set minimum value but when I placed the order via the Admin panel, no minimum order applied. I find this very useful for customer adding to their order last minute. These items on its own would fall below the minimum order value but this MOV has been achieved with the main order.

Is there a way of doing this on version 4.6.1 without having to resort to removing the minimum order whilst I complete the order via Admin?

Thanks in advance for all your help

The following changes are required

1. app/functions/fn.cart.php

Find the fn_allow_place_order function and replace

$cart['amount_failed'] = (Registry::get('settings.General.min_order_amount') > $total && floatval($total));

with

if (AREA == 'C') {
        $cart['amount_failed'] = (Registry::get('settings.General.min_order_amount') > $total && floatval($total));
} else {
        $cart['amount_failed'] = false;    
}

2. design/backend/templates/views/order_management/components/payment_method.tpl

replace

{if $settings.General.min_order_amount <= $cart.total}

with

{if $settings.General.min_order_amount <= $cart.total || true}

3. Clear cache and check result

Note: both files contains hooks, so you can try to make these changes with the My changes addon

Thanks for your reply. I have found and edited the fn.cart.php file but I can't find the other file. Under Views is Orders (not order_management) and Components but there isn't a payment_method.tpl file. I can find a file with this name under Checkout/Components but there is nothing for amount_failed.

Any ideas where else I might look?

You sure you followed the right path

design/backend/templates/views/order_management/components/payment_method.tpl

http://prntscr.com/gsikef

http://prntscr.com/gsijz4

Thanks for your reply. I have found and edited the fn.cart.php file but I can't find the other file. Under Views is Orders (not order_management) and Components but there isn't a payment_method.tpl file. I can find a file with this name under Checkout/Components but there is nothing for amount_failed.

Any ideas where else I might look?

It should be there. Use FTP connection instead of built-in file editor

You are right, I was looking in the built-in file editor. All sorted now, it works perfectly. Thanks again for all your help with this.

You are right, I was looking in the built-in file editor. All sorted now, it works perfectly. Thanks again for all your help with this.

We were glad to help you!