V6 - Making a drop down box select a pop-up product info page with Add to Cart button.
The following templates will allow a range of products to be hidden on the page
and replaced by a single SELECT statement containing an option for each product.
Selecting a product will open a po-up window containing the product details and
an Add to Cart button.
Don't use on sections with "Quantity On product page" as errors (invalid quantity, etc)
are sent back to the calling page and in this case it would be the popup page that has
already closed it's window.
PATCHING INSTRUCTIONS
********** Edit Act_ProductBody.html (this is the only patch to an existing template)
********** and add the following just after the start:-
********** Make a new product template SelectStartProductLine.html
NETQUOTEVAR:INCLUDE Act_ProductSeparator.html
NETQUOTEVAR:ENDSEPARATOR
NETQUOTEVAR:PRODUCTDESCRIPTION
NETQUOTEVAR:NEXT
********** Make a new Extended Info template AddtoCart_ExtendedInfo.html
NETQUOTEVAR:PAGETITLE NETQUOTEVAR:PAGEHEADER
********** Now whenever you want to create a set of drop down product names do the following.
Make sure your section does not use Quantity on Product Page.
For the selection list create a dummy product using product template SelectStartProductLine.html
The product description of this product will appear above the selection list.
The Product name will appear as the default (inactive) entry in the list.
For the products in the list use product template SelectOptionProductLine.html
For the last product in the list use product template SelectEndProductLine.html
For each product in the list (not the dummy one):-
Enter your details as usual with the description and image in the usual place.
Open the Advanced / Extended Information and tick "Generate Popup Page" (leave "Display by" blank)
Leave "Text" empty. (We show the main products Full Description in the popup.)
Leave "Image" empty. (We show the main products Image in the popup.)
Under Popup Page / Layout select AddtoCart_ExtendedInfo.html
Make sure the Page Name is info_.html where is the main Reference
(this should be the default).