Is it possible to create TWO minimum order fee amounts? We're trying to have one low order fee for national orders, and an alternative low order fee for international orders.
Anyone got any ideas?
Is it possible to create TWO minimum order fee amounts? We're trying to have one low order fee for national orders, and an alternative low order fee for international orders.
Anyone got any ideas?
You could customize the Low Order Fee in the module:
/includes/modules/order_total/ot_loworderfee.php
and change the setting around:
With something like:Code:// calculate from flat fee or percentage if (substr(MODULE_ORDER_TOTAL_LOWORDERFEE_FEE, -1) == '%') { $low_order_fee = ($order->info['subtotal'] * (MODULE_ORDER_TOTAL_LOWORDERFEE_FEE/100)); } else { $low_order_fee = MODULE_ORDER_TOTAL_LOWORDERFEE_FEE; }
Code:// calculate from flat fee or percentage if (substr(MODULE_ORDER_TOTAL_LOWORDERFEE_FEE, -1) == '%') { $low_order_fee = ($order->info['subtotal'] * (MODULE_ORDER_TOTAL_LOWORDERFEE_FEE/100)); } else { // bof: custom low order fee // $low_order_fee = MODULE_ORDER_TOTAL_LOWORDERFEE_FEE; if ($order->delivery['country_id'] == STORE_COUNTRY) { // National $low_order_fee = 50.00; } else { // International low order fee $low_order_fee = 100.00; } // eof: custom low order fee
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
This is what happens in the Admin when I add the suggested custom code...
I really appreciate your help.![]()
Sorry ... missed a bracket ...
Try this code:
Code:// calculate from flat fee or percentage if (substr(MODULE_ORDER_TOTAL_LOWORDERFEE_FEE, -1) == '%') { $low_order_fee = ($order->info['subtotal'] * (MODULE_ORDER_TOTAL_LOWORDERFEE_FEE/100)); } else { // bof: custom low order fee // $low_order_fee = MODULE_ORDER_TOTAL_LOWORDERFEE_FEE; if ($order->delivery['country_id'] == STORE_COUNTRY) { // National $low_order_fee = 50.00; } else { // International low order fee $low_order_fee = 100.00; } } // eof: custom low order fee
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
You ROCK!!!! That fixed it! Thank you!
Thanks for the update that this is now working for you ...![]()
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!