############################################################################################
How to make an Actinic V6 selection button matrix for a list of colours and sizes, all with
different prices, display the appropriate price on each button.
############################################################################################
Make a copy of Act_ProductLine.html and call it (say) Table_ProductLine.html
Edit Table_ProductLine.html and replace the line:-
NETQUOTEVAR:ADDTOCARTBUTTON
with the following code:-
############################################################################################
You may want to change the line "var addtocart = ' - Add';" above to suit your needs.
Now create your product with zero price.
Select Table_ProductLine.html as the Product Layout.
Give it a single component called (say) Info.
Give this component an Attribute called Colour.
Give that Attribute choices for each colour (say; Red, Green, Blue).
Give this component another Attribute called Size.
Give that Attribute choices for each size (say; Small, Large).
Now double click the component, choose Permutations, Fill List, and fill in the corresponding prices for each combination.
OK out, double click the product and you'll now have a Components tab.
Under Components, select Sum of Component Prices.
Finally put the following code into the Full Description box (under all your own text):-
!!<>!!
You have to alter the colour, size and price descriptions to match your product.
Only change the bits within the square brackets. All entries need 'quotes' as shown.
The prices are pounds and should follow the sequence:-
Colour1, Price for Size1, Price for Size2, Colour2, Price for Size1, Price for Size2, etc.
You can have any number of colours and sizes and the button matrix will be automatically built to suit.
Norman