How to add Custom Shipping Charge in WooCommerce?

As more and more businesses move online and consumers increasingly rely on e-commerce, shipping companies have become an integral part of the online shopping experience. These companies play a crucial role in ensuring that goods are delivered to customers in a timely and efficient manner.

However, the default shipping methods in WooCommerce (Free Shipping, Flat Rate and Local Pickup) may not always meet the complex requirements of shipping companies to set a custom shipping charge in WooCommerce. This is because every shipping company has its own set of rules and regulations, as well as unique shipping methods and pricing structures. To accommodate these requirements, shipping companies often require customized shipping solutions that can integrate seamlessly with their existing systems.

To address this issue of letting customers set custom shipping charge, we have built a powerful shipping plugin for WooCommerce named ‘Custom Shipping Methods for WooCommerce‘. This plugin can help businesses add more advanced custom shipping charges to their WooCommerce stores.

Custom Shipping methods for WooCommerce


Our plugin is very useful for WooCommerce users who need more flexibility with their shipping options. With Custom Shipping Methods for WooCommerce, users can create custom shipping rules that take into account a variety of factors, such as distance, quantity, weight, and cost. There are different WooCommerce shortcodes for all these functions.

For example, users can set up a rule that offers free shipping for orders over a certain minimum amount, or charge a flat rate for shipping based on the weight of the items in their WooCommere cart. They can also create rules that apply only to certain products or categories, or to specific countries or regions.

Overall, Custom Shipping for WooCommerce is a powerful tool for online retailers who need more control over their shipping options, and could help them provide a better customer experience by offering more tailored shipping options. There are different WooCommerce shortcodes for different usage. Below picture will give a brief idea about the shortcodes.

Custom shipping charge in WooCommerce with the help of Shortcodes

Let’s understand how these WooCommerce shortcodes can create wonders.

How to add custom shipping charge in WooCommerce based on Distance (Table Rate Shipping)?

Customized shipping based on distance can be especially useful for WooCommerce sellers who have a wide customer base and want to offer fair and transparent shipping costs to all their customers, regardless of where they live. It can also be a helpful tool for customers who want to know exactly how much they will be paying for shipping before they complete their purchase.

For this, one can use [distance] shortcode and fulfil their requirements. Let us understand this with the help of some use cases:

  • Shipping cost till 15 km should be 0, then for 15 km to 50 km shipping cost should be $20, for 51 km to 100 km shipping cost should be $30 and for 101 km and more the standard shipping cost should be $40.

    The shortcode to be used for this under the Cost field:
[costs_table prop="distance" table="0-0|15-20|50-30|100-40" key="YOUR GOOGLE API KEY" default_distance="100" units="km" debug="yes"]
  • Shipping cost should be 0 till 15 km and after 15 km it should be 1.5 times the distance.

    The shortcode to be used under Cost field:
[costs_table prop="distance" table="0-0|15-distance*1.5" key="YOUR API Key" default_distance="15" debug="yes" units="km"]

How to add a custom shipping charge in WooCommerce based on Quantity (flat rate shipping options)?


Customized WooCommerce shipping cost per product can be useful for WooCommerce sellers who want to offer tiered shipping costs based on the quantity of items in an order. This can be particularly beneficial for businesses that sell items in bulk or have different shipping requirements for different quantities of products. Here’s an example of how you can implement custom shipping based on quantity using shortcodes:

Let’s say you want to charge $5 for shipping if the quantity of items in the order is less than or equal to 5, $10 if the quantity is between 6 and 10, and $15 if the quantity is greater than 10.

Formulae for this:

[costs_table prop="qty" table="0-0|5-5|10-10|15-*"]


Note: This is a hypothetical example and you can adjust the quantity ranges and shipping costs as per your specific business requirements.

WooCommerce Weight based shipping?


Weight based shipping can be useful for WooCommerce sellers who want to charge shipping costs based on the weight of the items in an order. This can be particularly relevant for businesses that sell items with varying weights and need to calculate shipping costs accordingly. Here’s an example of how you can implement custom shipping based on weight using shortcodes:

Let’s say you want to charge $5 for shipping if the total weight of items in the order is less than or equal to 5 lbs, $10 if the total weight is between 6 and 10 lbs, and $15 if the total weight is greater than 10 lbs.

Formulae for this:

[costs_table prop="weight" table="5-5|10-10|15-*"]

Note: This is a hypothetical example and you can adjust the weight ranges and shipping costs as per your specific business requirements. Additionally, make sure to accurately input the weights of your products and consider using a reliable weight measurement system to ensure accurate shipping calculations.

How to add custom shipping charge in WooCommerce based on Cart Costs?


Customized Woocommerce shipping cost based on cart total can be useful for WooCommerce sellers who want to charge shipping costs based on the total cost of items in an order. This can be particularly relevant for businesses that offer tiered shipping rates based on the order value. Here’s an example of how you can implement custom shipping based on cost using shortcodes:

Let’s say you want to charge $5 for shipping if the total cost of items in the order is less than or equal to $50, $10 if the total cost is between $51 and $100, and $15 if the total cost is greater than $100.

Formulae for this:

[costs_table prop="cost" table="50-5|100-10|-*"]

Note: This is a hypothetical example and you can adjust the cost ranges and shipping costs as per your specific business requirements. Additionally, make sure to accurately input the prices of your products and consider using a reliable currency conversion system to ensure accurate shipping calculations.

In conclusion, custom shipping based on various factors such as distance, quantity, weight, or cost can be a powerful tool for online sellers to provide fair and transparent shipping costs to their customers. By leveraging shortcodes and other relevant tools, sellers can easily implement custom shipping rules that align with their business requirements and offer a seamless shopping experience for their customers.

Overall, custom shipping based on various factors allows sellers to tailor their shipping costs to their specific business needs, offer fair and transparent shipping costs to customers, and enhance the overall shopping experience. By using shortcodes and other relevant tools, sellers can easily implement custom shipping rules and improve their e-commerce operations.

We welcome your questions and comments about our plugin! Please feel free to share any inquiries or feedback in the comment section below.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.