I have Zen Cart 155d with the standard green responsive template.
I have the Low order Fee implemented but I want to block this for on-sale items.
All on-sale items have the Master Category = 102.
I want to customize the Order Total module:
/includes/modules/order_total/ot_loworderfee.php
I wrote some code with my primitive skills, unusually for me it did not crash my web site or generate error logs!
It also does not block the Low order Fee.
Around line 64, I added the following code from BOF to EOF after the gift voucher check:
Code:
// check to see if everything is gift voucher, if so - skip the low order fee.
$charge_it = 'false';
if ((($cart_content_type == 'virtual') and MODULE_ORDER_TOTAL_LOWORDERFEE_VIRTUAL == 'false')) {
$charge_it = 'true';
}
}
}
// BOF Try to stop low order fee for sale items MH
if ($_Session['master_categories_id'] == "102") {
$charge_it = 'false';
}
// EOF
if ($charge_it == 'true') {
Thanks for any advice
Bookmarks