Search Knowledge Base by Keyword

Add an Extra Cost to Each Package for UPS WooCommerce Shipping

In this small guide, we will tell you how to add an extra cost to each package when using the WooCommerce UPS Shipping Plugin with Print Label. Read below to know more about it.

On of our customers wanted to add a $3 fee to the order for each shipping box used. A flat fee of $3 needs to be added to the shipping cost when UPS returns the number of boxes being shipped. So if UPS determines that the order will take two shipping boxes, a $6 charge is applied to shipping before checkout.

We developed a code snippet that helps to add an extra cost to each package while using our UPS WooCommerce Shipping plugin.

Go to Appearance > Editor > Theme Functions (functions.php) and insert the code to enable this functionality on the plugin. In the above code, change the variable $amount_to_add = 3 according to the extra cost you wish to add to each package.

Last Updated On December 13, 2018