Defining option-specific product prices and product weights

Return to Introduction  Previous page  Next page

The flexibility of the Product Options module allows you to set specific prices and/or weights on individual product options. This can be done by specifying product option modifiers. The modifiers are set by placing an equality sign after the option value and specifying product price variations in the following format:

'+X' or 'X': to add X to the basic price of a product, where X is a fixed value in the store's default currency;
'-X': to subtract X from the basic price of a product, where X is a fixed value in the store's default currency;
'+X%' or 'X%': to add X percent to the basic price of a product;
'-X%': to subtract X percent from the basic price of a product;

and product weight variations in the following format:

'w+Y' or 'wY': to add Y to the basic weight of a product, where Y is a fixed value in the store's default weight units;
'w-Y': to subtract Y from the basic weight of a product, where Y is a fixed value in the store's default weight units;
'w+Y%' or 'wY%': to add Y percent to the basic weight of a product;
'w-Y%': to subtract Y percent from the basic weight of a product.

If a product option has both weight and price modifiers, they must be separated by a semi-colon.

Example: If our store specializes in plush toys and offers plush 'TLC Lion Cub toy' in five sizes, the list of options might look like shown in Figure 6. With the basic price of the toy being equal to $20 and the weight being 5lbs, the customer will see the list of options as shown in Figure 16.

<br>
Figure 6: Using price and weight modifiers in product options class definition


Figure 6: Using price and weight modifiers in product options class definition

Note:If some products at your online store have multiple product option classes defined with price or weight modifiers present in more than one class, it is recommended that you disable the 'Show actual price instead of a price modifier' option in the Product Options module settings to avoid customer confusion.