Including Products (with add to cart button) on Brochure Pages
PREREQUISITES
This works for products that use Quantity on Product Page (without single add to cart).
We hijack the Extended Info to produce the Brochure product so you can't
use the extended info popup on this product.
No existing templates are changes and all other pages work as usual.
If using Business, logged in customers won't see their schedule price. The product will
be added at the correct price.
HOW IT WORKS
You generate a Product "popup page" using an alternative template that has an
Add to Cart button. By unchecking all the Display By: links the page will be generated but
won't have any links associated with the product.
Special brochure fragments use a NETQUOTEVAR:INCLUDE to display the "pop up" file generated above.
SETUP
Save the following in Site1 as BrochureProduct1Fragment.html
NETQUOTEVAR:BROCHURE_TITLE
NETQUOTEVAR:INCLUDE siteHTML\brochureproduct1.html
NETQUOTEVAR:BROCHURE_TEXT
|
If you want more than 1 product, duplicate the above to file name BrochureProduct2Fragment.html
(replacing brochureproduct1.html with brochureproduct2.html and so on)
If you don't want the Fragment Title to show remove the line "NETQUOTEVAR:BROCHURE_TITLE
".
Save the following in Site1 as BrochureProductTemplate.html
NETQUOTEVAR:PRODUCTFORMBEGIN
NETQUOTEVAR:PRODUCTIMAGE
|
NETQUOTEVAR:PRODUCTNAME NETQUOTEVAR:PRODUCTREF |
NETQUOTEVAR:PRODUCTDESCRIPTION
NETQUOTEVAR:PRODUCTBEGINLINKNETQUOTEVAR:PRODUCTLINKTEXTNETQUOTEVAR:PRODUCTENDLINK
NETQUOTEVAR:PRICEEXPLANATION
NETQUOTEVAR:PRODUCTPRICE
NETQUOTEVAR:OTHERINFOPROMPT
NETQUOTEVAR:DATEPROMPT
NETQUOTEVAR:PRODUCTQUANTITY
NETQUOTEVAR:ADDTOCARTBUTTON
|
NETQUOTEVAR:PRODUCTFORMEND
OPERATION
In the Brochure where you want the 1st product to appear create a fragment
using BrochureProduct1Fragment.html as the template.
Fill in the Title and Text (use a single space if you want no text).
Go to the product you want to appear and do the following (click Advanced if you see it):-
Select the Extended Information tab.
Check Generate Popup Page
Clear the 3 fields in Display By:
In Page Name enter brochureproduct1.html (use brochureproduct2.html for second product, etc)
In Layout enter BrochureProductTemplate.html
You can leave Text and Image blank as this info is carried over from the main product.
Update the site and see if it worked.
CUSTOMISATION:
BrochureProductTemplate.html and BrochureProduct1Fragment.htmlcan be altered to give a different
style to these products.
Also if you want a different image or text on the Brochure pages to the normal product,
i.e. the Brochure image or text:-
then comment out NETQUOTEVAR:PRODUCTIMAGE
and remove the comments from
likewise comment out NETQUOTEVAR:PRODUCTDESCRIPTION
and remove the comments from
NOTES
Still to be done:
Having a Checkout and View Basket link on the Brochure pages (or just the Product fragments)
might be a good idea.
Alternatively rename the "Products" link on the Brochure to be "Products and Checkout".