Page 1 of 1

Product Template Sample

PostPosted: Tue Sep 02, 2003 2:56 pm
by JE Shore
Anyone have a real life sample of a product template used with multi-add
forms? The Shopsite example is just confusing me more that I ever
thought possible.
Thanks
JE Shore

Re: Product Template Sample

PostPosted: Wed Sep 03, 2003 2:17 pm
by Jim
JE Shore wrote:

Anyone have a real life sample of a product template used with multi-add
forms? The Shopsite example is just confusing me more that I ever
thought possible.
Thanks
JE Shore


The multi-product add requires both a custom page and custom product
template. The page template defines the form and the submit parts of
the form and the product template defines the input= for each of the
products.

Below is the product template from my store page
http://beeutahful.com/store/arachne2003_sale.html (note that it is
copied directly from the ShopSite help on page
http://www.shopsite.com/help/6.3/en-US/ ... i-add.html
Jim
-----------

[-- DEFINE PRODUCT --]
#NOTE: No opening or closing FORM tags appear here-
#those must be placed in the PAGE Template

#Generate the checkbox - notice the name is itemnum
#and its value is the database record number
<P><input type=checkbox name=itemnum value=[-- PRODUCT.RECORDNUMBER --]>

#if a Quantity is required generate the quantity box
[-- IF product.DisplayOrderQuantity? --]
Quantity <input type=text size=2 name="[-- PRODUCT.RECORDNUMBER
--]:qnty"
value="1">
[-- END_IF --]
[--PRODUCT.Name--]
[--PRODUCT.Price--]

#<BR>[-- Product.ProductDescription --]


# Generate the Ordering Option Menus
[-- IF PRODUCT.DisplayOrderingOptions --]
<BR>
[-- PRODUCT.OptionText --]
[-- ORDER_OPTION_MENU LINE --]
[-- END_IF --]

</P>
[-- END_DEFINE PRODUCT --]