When you add a product to your WooCommerce store, the WooCommerce shipping calculator automatically calculates the shipping by weight. This means that the shipping cost will be based on the weight of the product, not the total price of the product.
Here’s how it works:
1. The WooCommerce shipping calculator calculates the shipping cost for each product by dividing the weight of the product by the shipping cost for that product type.
2. The WooCommerce shipping calculator then multiplies the shipping cost by the total number of products in the order.
3. The WooCommerce shipping calculator then adds the shipping cost for the order to the total price of the products.
4. The WooCommerce shipping calculator then subtracts the shipping cost for the order from the total price of the products.
5. The WooCommerce shipping calculator then prints the total price of the products, the shipping cost, and the total weight of the products.
6. The WooCommerce shipping calculator then displays the order in the order form.
7. The WooCommerce shipping calculator then prints the total weight of the products in the order.
8. The WooCommerce shipping calculator then prints the shipping cost for the order.
9. The WooCommerce shipping calculator then prints the total price of the order.
10. The WooCommerce shipping calculator then prints the finished order.
The WooCommerce shipping calculator automatically calculates the shipping cost for each product by dividing the weight of the product by the shipping cost for that product type. WooCommerce then multiplies the shipping cost by the total number of products in the order.
The WooCommerce shipping calculator then prints the total weight of the products in the order.