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: v1.5.5]
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: v1.5.5]
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: v1.5.5]
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!
Well...I thought I was done with this...but apparently the boss wants two different minimum order amounts as well. 100 dollar minimum for national orders, and a 500 dollar minimum for international orders. I have been trying to do this myself...but have been so far unsuccessful. I modified the code you provided to me to this:
And the differences in the fee are working...but not the minimum order amounts. Help!PHP Code:
// bof: custom low order fee
// $low_order_fee = MODULE_ORDER_TOTAL_LOWORDERFEE_FEE;
if (($order->delivery['country_id'] == STORE_COUNTRY) and ($order->info['subtotal']< 100.00)) {
// National
$low_order_fee = 25.00;
} else if (($order->delivery['country_id'] != STORE_COUNTRY) and ($order->info['subtotal']< 500.00)) {
// International low order fee
$low_order_fee = 100.00;
}
}
And another question...what should the settings in the admin be? I know I have to set "allow low order fee" to true...but what should the dollar values be? Should I just set them to 0?
What do you have set for the Modules ... Order Totals ... Low Order Fee ot_loworderfee in the right hand panel?
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: v1.5.5]
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!
I'm hoping that's what you need to know...
Bookmarks