Zen Cart Logo
Forums / Addon Shipping Modules / Shipping Surcharge [Support Thread]

Shipping Surcharge [Support Thread]

Views: 7,133

Results 21 to 23 of 23
29 Apr 2025, 5:22 PM
#21
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
370
Plugin Contributions:
0

Shipping Surcharge [Support Thread]

I see. Thanks for your info.

27 Jul 2025, 3:48 PM
#22
mcqueeneycoins avatar

mcqueeneycoins

Zen Follower

Join Date:
Jan 2008
Posts:
156
Plugin Contributions:
0

Re: Shipping Surcharge [Support Thread]

Can this module be used to apply a shipping surcharge when items from specific categories are added to the cart? For example, I offer free shipping on orders over $500, but if a customer is buying certain supplies I need to add a $5 surcharge (so the total shipping is $5 instead of free) to offset the higher shipping costs (BUT ONLY WHEN FREE SHIPPING IS ELIGIBLE)--I have other shipping modules calculate correct shipping price when order total is below $500. What would be the best/easiest way to implement this, if it's even possible?

18 Mar 2026, 3:10 AM
#23
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
285
Plugin Contributions:
1

Re: Shipping Surcharge [Support Thread]

njcyx:

Another issue, but it is not critical to me.

Under the order-total, there is an option under this surcharge plug-in: Charge a Shipping Surcharge. By default, it is set to true. I checked my checkout page, and the surcharge only applied to the sub-total number. Shipping is not included. But anyway, I don't plan to apply surcharge on the shipping.

In actual fact I want to surcharge the shipping only - this would be useful - as in the case right now - where fuel costs are going up and you either do your own local deliveries or your courier is passing on a fuel charge so you want to pass this onto your customer.

To do this change line 114 from -

              ```php

$shipping_surcharge = ($order->info['subtotal'] * ((float)MODULE_ORDER_TOTAL_SHIPPINGSURCHARGE_AMOUNT/100));


to

                    ```php
$shipping_surcharge = ($order->info['shipping_cost'] * ((float)MODULE_ORDER_TOTAL_SHIPPINGSURCHARGE_AMOUNT/100));