PDA

View Full Version : Template Code Explanation


madboyo
16-Jan-2010, 06:00 PM
I have just created a new product template using code from other sample templates.

Actinic Version: 7.0.7

During line by line testing I have found out that the following code does two things.

<Actinic:ACTIONS>NETQUOTEVAR:ADDTOCARTBUTTON</Actinic:ACTIONS>

With a basic product with no options this code delivers the 'Add To Cart' button which to be honest doesn't take alot to work out.

With a product that has options however this code also delivers the options which is a little harder to understand.

Can anyone shed some light on why and how a split the two out to individual items?

NormanRouxel
16-Jan-2010, 06:15 PM
It's in the V7 Advanced Guide. Download via actinic.co.uk. Look for "Changing the Way Product Variants are Laid Out".

madboyo
18-Jan-2010, 10:59 AM
It's in the V7 Advanced Guide. Download via actinic.co.uk. Look for "Changing the Way Product Variants are Laid Out".

Thank you :D

Strange that they would got to the trouble of of combining the two in one variable but hey it's sorted.

NormanRouxel
18-Jan-2010, 03:28 PM
Your right. Probably a relic from the original version. When variants were later added they were added to an existing netquotevar so that older Templates would continue to work.