The Shipping Surcharge plugin allows you to impose an additional shipping charge for a specific zone.
https://www.zen-cart.com/downloads.php?do=file&id=2308
The Shipping Surcharge plugin allows you to impose an additional shipping charge for a specific zone.
https://www.zen-cart.com/downloads.php?do=file&id=2308
Last edited by swguy; 3 Apr 2021 at 11:24 AM.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Brilliant little Mod - I didn't want to restructure my whole shipping module for Northern Ireland and Isle of Man so this was a beautiful workaround.
Nice1 SWGuy![]()
Updated version 1.1 has weight and value thresholds in case you want to check those before imposing the surcharge.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Looks like this version may have introduced an issue for stores performing a new install. Discussion is had at the following forum thread: https://www.zen-cart.com/showthread....rcharge-module
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
This issue has been fixed in version 1.2, which is now available.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
I like the ability to add a surcharge using a weight threshold in the shipping surcharge module and I was wondering if it would be possible to add dimension thresholds for oversized items that UPS, FedEx, USPS or others charge more to ship. Thanks.
This could certainly be done but it would not be the kind of thing I would release as an open source module. You are welcome to work with me or any other developer if you'd like to make this change on your cart.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
There was a bug in specifying the zone for this module that has been fixed in the new version.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
I'm looking for a module for "tariff surcharge" and this module looks good.
I tested it under zc158 and it shows some warning.
1.
Line 78 is the following.PHP Code:
[16-Apr-2025 12:05:52 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 /includes/modules/order_total/ot_shippingsurcharge.php(78): zen_debug_error_handler()
#1 /includes/classes/order_total.php(99): ot_shippingsurcharge->process()
#2 /includes/modules/pages/checkout_one/header_php.php(347): order_total->process()
#3 /index.php(35): require('/home4/...')
--> PHP Warning: A non-numeric value encountered in /includes/modules/order_total/ot_shippingsurcharge.php on line 78.
My fix. Change this line toPHP Code:
$shipping_surcharge = ($order->info['subtotal'] * (MODULE_ORDER_TOTAL_SHIPPINGSURCHARGE_AMOUNT/100));
2.PHP Code:
$shipping_surcharge = ($order->info['subtotal'] * ((float)MODULE_ORDER_TOTAL_SHIPPINGSURCHARGE_AMOUNT/100));
Line 89 is the following.PHP Code:
[16-Apr-2025 12:16:48 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxx, Language id 1
#0 /includes/modules/order_total/ot_shippingsurcharge.php(89): zen_debug_error_handler()
#1 /includes/classes/order_total.php(99): ot_shippingsurcharge->process()
#2 /includes/modules/pages/checkout_one/header_php.php(347): order_total->process()
#3 /index.php(35): require('/home4/...')
--> PHP Warning: Undefined array key "Sales Tax" in /includes/modules/order_total/ot_shippingsurcharge.php on line 89.
Not sure how to fix it. My fix is to comment the this line out. It seems no affect on my checkout page.PHP Code:
$order->info['tax_groups']["$tax_description"] += zen_calculate_tax($shipping_surcharge, $tax);
Also this surcharge doesn't apply on my sales tax (local sales tax), which seems normal anyway, since it is a surcharge.
Last edited by njcyx; 16 Apr 2025 at 05:35 PM.
Bookmarks