How to mix weight-based and item-Based shipping in WooCommerce
“Shipping” in the e-commerce world is a crucial component that can materially influence sales in your store.
You can offer customers with a combination of weight-based and item count-based shipping using our WooCommerce Table Rate Shipping Pro plugin.
The WooCommerce Table Rate Shipping Pro plugin offers a wide variety of combined shipping methods to your customers. For instance, let’s get started with setting up the combined “Weight-based” and “Item-based” shipping methods. The following procedures help you configure these combined shipping in your store.
- Add the new products.
- Add the new shipping classes.
- Assign these shipping classes to the products.
- Configure the shipping methods by adding the shipping zone and the shipping method Table Rate Pro.
- Configure the rates for the shipping method.
- View the results on your store.
The following sections provide detailed, step-by-step instructions for each procedure.
1. Adding New Products
This section provides instructions on adding two products using our plugin. For instance, we add the first product T-Shirts that are countable items and the second product, Loose Stamps that are shipped by weight.
1. Click Products > Add New on the left navigation pane.
2. On the Add new product screen, type the product name as T-Shirts. Specify its Regular price as $9.99 as shown in the following screen.
3. Click Publish on the right pane.
4. Similarly, click Products > Add New on the left navigation pane to add the product Loose Stamps. Specify its Regular price as $12.99.
5. Click Publish on the right pane.
Both products are now added in your store as highlighted in the following screen.
2. Adding Shipping Classes
Shipping classes refer to the standardized shipping classifications used to group products of similar type and used by some shipping methods, such as Flat Rate Shipping to provide different rates to different classes of products.
Here, we create two shipping classes – Per Item Based Shipping and Weight-Based Shipping.
1. Click WooCommerce > Settings on the left pane.
2. Click the Shipping tab. The following screen appears.
3. Click Shipping classes.
4. Click Add shipping class at the bottom-right corner of the screen.
5. In the Shipping class name text box, type the first shipping class as Per Item Based Shipping and click Save shipping classes.
6. Click Add shipping class at the bottom-right corner of the screen, type the second shipping class name as Weight Based Shipping and click Save shipping classes.
Both the shipping classes are added in your store as shown in the following screen.
Note: Our plugin uses these shipping classes to calculate the shipping costs of the products.
3. Assigning Shipping Classes to Products
After adding the products and the shipping classes, assign these shipping classes to the products. The WooCommerce Table Rate Shipping Pro plugin uses these shipping classes to calculate the shipping costs of the products.
In this example, we assign Per Item Based Shipping to T-Shirts and Weight Based Shipping to Loose Stamps.
1. Click Products on the left navigation pane.
2. On the right pane, click on the T-Shirts product you created earlier.
3. Scroll down, click the Shipping tab and select Per Item Based Shipping as the shipping class to assign it to T-Shirts. See the following screen.
4. Click Update on the right pane.
5. Click Products on the left navigation pane.
6. On the right pane, click on the Loose Stamps product you created earlier.
7. Scroll down, click the Shipping tab and select Weight Based Shipping as the shipping class to assign it to Loose Stamps.
8. Click Update on the right pane.
4. Setting Up the Shipping Method
Firstly, we add a shipping zone for the customer based on their shipping address. In this procedure, we specify United States as the shipping zone.
Note: Shipping zone is a geographic region where specific sets of shipping methods are offered. WooCommerce synchronizes customers to a zone using their shipping address and presents shipping methods within that zone.
We then add the shipping method called Table Rate Pro to that zone. Once this is done, we configure the shipping rates.
1. Click WooCommerce > Settings on the left pane.
2. Click the Shipping tab.
3. Click Add shipping zone.
4. Type the Zone name as U.S. and select the Zone regions as United States as shown in the following screen.
5. Click Save changes.
6. Click Add shipping method. The Add shipping method window pops up.
7. Select Table Rate Pro.
8. Click Add shipping method. The new shipping method Table Rate Pro is added to the shipping zone as displayed in the following screen.
9. Click on Table Rate Pro and then click Add New to add a new shipping rule to it.
10. Select the option Enable this shipping method.
11. Type a title for the shipping method in Method Title. In this example, it is Standard Shipping.
12. Click Add New Rate at the bottom-left corner of the screen to set up some rates (one at a time) for Table Rate Pro.
13. Specify the Table Rates as shown in the following screen.
Note: The Condition for Weight Based Shipping is set to Weight (kg) and the Condition for Per Item Based Shipping, to Item Count.
The value of * is infinity.
14. Click Save changes.
5. Viewing the Results
After configuring these values, it’s time to verify the results in your store.
1. On the top-left corner of the screen, click WooCommerce Plugins by JEM products > Visit Store. The products T-Shirts and Loose Stamps appear on your store.
2. Under T-Shirts, click Add to cart.
3. Under Loose Stamps, click Add to cart > View Cart.
4. In the cart, for verification, let us increase the Quantity of T-Shirts to 5 and the Quantity of Loose Stamps to 2 kg.
5. Click Update cart.
The plugin calculates the subtotal rate of each product (based on their count/weight) and accordingly adds the shipping charges for these products (as per the rates configured in Table Rate Pro). Adding these values, it displays the total (final) amount of your shopping on your cart, as highlighted at the bottom of the following screen.