E-Commerce

How to set shipping rates by weight in WooCommerce

OneClick Créations DigitalesEditorial team
2 min read
How to set shipping rates by weight in WooCommerce

Transform your delivery grid into verified WooCommerce rules. The example shows how to manage boundaries, multi-product baskets and an unavailable delivery mode.

Make a rule that leaves no doubt.

Suppose a home shipping at €10.90 up to 500 g included, then at €12.90 above 500 g and up to 1 kg included. A 500 g basket must remain at €10.90, while a 501 g basket should go to €12.90. Write the gram limits on your internal grid, especially if the prices are indicated with the labels like "500 g to 1 kg". The literation alone allows two interpretations at 500 g.

Find out the weight that the site will use

In WooCommerce, check the weight unit and find out the items and variations whose weight changes. To illustrate, two products of 240 g and a package of 30 g give 510 g if the rule adds the weight of the package. If your extension only counts the products, the basket will pass to the lower section. Make an explicit decision on the packaging, check where it is configured and reproduce it in your tests. Do not correct the grid on the basis of a weight whose method remains unknown.

The online shop is located in the Bahia Concept Store.
Examples of e-commerce implementation of OneClick. The grid below is fictional and serves to illustrate the recipe of a delivery configuration.

Configure areas and methods before the rates

For a store that only changes the metropolitan France, apply the new rules to that area and test an address in the other already active areas. Treat separately home and point relay, because their availability and their weight limits may vary. If the relay point stops at 20 kg, check that it remains available at its authorized limit and disappears just above, while the home remains offered when it covers the weight.

Create a recipe sheet with real baskets

Prepare tests at 499, 500, 501, 999, 1000 and 1 001 g, then a basket composed of variants and one above the carrier limit. On each line, note the address, the basket, the expected mode, the TTC price displayed and the outcome on payment. Change an already entered address to check that an old rate is not displayed. For the Metropolitan France, choose also an address that is located in an excluded territory to check the correspondence of the areas.

Prove the order exceptions

Decide what to display when no carrier can take the calculated weight. A message calling to contact the store is clearer than a page that prevents ordering without explanation. Also check the weightless products, free shipping orders and discounts. After the online placement, follow the first orders whose weight is close to a border and compare the invoiced price to the expected calculation.

OneClick Créations Digitales

OneClick Créations Digitales

Editorial team

The OneClick team helps organisations with digital transformation, combining creative and technical expertise.

Urgent project?