Product configuration example - Artusoft/Nop.Plugin.Widgets.PriceForSize GitHub Wiki
Example of cloth sale.
in standard mode creates the following attributes:
- 2 attributes to the dimensions (width and height).
- the material attribute with 3 options (cotton, wool, silk).
- the border attribute with 2 options (simple, embroidered)
In the cue plugin page price management by size. In WidthAttributeId I put the name of the width. In HeightAttributeId I put the height attribute name.
Optional can set the minimum or maximum extent manageable for all dimensions. Optional can set the minimum billable for the perimeter or area.
Now for each value of the attributes you can specify the price:
- Material Cotton € 4 per m2
- Wool material € 6 per m2
- Silk material € 8 per m2
- simple border every € 1 metre of the perimeter
- Embroidered border every € 2 metre of the perimeter
The final price of a piece of 1x2 meters in cloth with embroidered wool board will: 2 (m2) x 6 (€) + 6 (m) x 2 (€) = 24 €
This total will be added to the base price of the product (if any).