O'Reilly logo

Building E-commerce Sites with VirtueMart Cookbook by John Horton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Charging for shipping by weight range

This is the simplest shipping method of all, so we will jump in and configure it in a flash.

Getting ready

The only preparation you will need to have done is to assign weights to your products so that VirtueMart database knows how heavy everything is and can use the rules we create in a moment to calculate and charge the appropriate shipping cost.

If you haven't done that already, see the previous chapter and the Adding a simple product (dimensions and weight tab) recipe.

Now you need to decide what weight ranges you want to set and how much to charge for each of them. In this recipe we will configure three weight ranges as shown in the following table:

Weight range

Cost

Up to 0.99kg

£3.00

1kg - 1.99kg

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required