Template Codes:
!PRODCODES! = Product Search Codes for return to database !KEYWORDS! = Product Keyword Search Codes !ID! = Database id number !PRODUCT! = Product Search Codes !PRICE! = Product unit price !ITMNUM! = Product item number !NAME! = Product name !IMAGE! = Product image name and path "/acart/images/imagename.jpg" !DESCRIPTION! = Productdescription !COLOR! = Product color !SIZE! = Product size !WT! = Product Weight !SESSION! = User session id ( for no cookies option) !BEGIN! = Begining number for search display !END! = ending number for search display !DISPLAY! = Amount of products to display from search !RELATEDLINKS! = Related Product Category links !SEARCHBOX! = Search Box only used on html pages (won't work with templates!)you can use the above Template codes to populate the template any way you want, as many times as you want!
Notes: Sample Template
As you can see from the example template below , that it has all the fields necessary to submit the product to the Shopping Cart for sale.
As you can see there are a lot of HIDDEN fields, these are fields that we want to pass to the cart unchanged by the user.
You make any of the fields active where the user can change the value,
I.E.
Price:!ITMNUM!, ← can be used for gift certificates.
Spec1:!ITMNUM!,15.00 ← used for special instructions 1. i.e. cutomer info or add on product, and cost!
Spec2:!ITMNUM!,15.00 ← used for special instructions 2. i.e. cutomer info or add on product, and cost!
Spec3:!ITMNUM!,15.00 ← used for special instructions 3. i.e. cutomer info or add on product, and cost!
Spec4:!ITMNUM!,15.00 ← used for special instructions 4. i.e. cutomer info or add on product, and cost!
Spec5:!ITMNUM!,15.00 ← used for special instructions 5. i.e. cutomer info or add on product, and cost!
Spec6:!ITMNUM! ← used for special instructions 6. i.e. cutomer info - text only field
Note: You can leave the coma and add on price off the special fields if you only want customer info only!
upfile:!ITMNUM!, ← used for uploads of Images for processing, or products.
Special Template Codes: (These are required codes)
!COLOR!, ← Makes it's own field, if there is a multiple selection it will create a drop down.
!SIZE!, ← Makes it's own field, if there is a multiple selection it will create a drop down.
HTML CODE: Sample Template
<br>
<CENTER>
<TABLE WIDTH = "600" BORDER="1" CELLPADDING="6">
<TR>
<TD WIDTH=175 VALIGN="TOP" align="center">
<FORM METHOD="POST" ACTION="/cgi-bin/acart/apple-cart.pl?add">
<INPUT TYPE=HIDDEN NAME="prodcodes" VALUE="!PRODCODES!">
<INPUT TYPE=HIDDEN NAME="number:!ITMNUM!" VALUE="!ITMNUM!">
<INPUT TYPE=HIDDEN NAME="desc:!ITMNUM!" VALUE="!NAME!">
<INPUT TYPE=HIDDEN NAME="wt:!ITMNUM!" VALUE="!WT!">
<INPUT TYPE=HIDDEN NAME="price:!ITMNUM!" VALUE="!PRICE!">
<INPUT TYPE=HIDDEN NAME="select:!ITMNUM!" VALUE="yes">
<INPUT TYPE=HIDDEN NAME="session" VALUE="!SESSION!">
<INPUT TYPE=HIDDEN NAME="page" VALUE="index.htm">
<INPUT TYPE=HIDDEN NAME="image:!ITMNUM!" VALUE="!IMAGE!">
<INPUT TYPE=HIDDEN NAME="spec1:!ITMNUM!" VALUE="NONE">
<INPUT TYPE=HIDDEN NAME="spec2:!ITMNUM!" VALUE="NONE">
<INPUT TYPE=HIDDEN NAME="wt:!ITMNUM!" VALUE="!WT!">
<INPUT TYPE=HIDDEN NAME="keywords" VALUE="!KEYWORDS!">
<INPUT TYPE=HIDDEN NAME="display" VALUE="!DISPLAY!">
<INPUT TYPE=HIDDEN NAME="begin" VALUE="!BEGIN!">
<INPUT TYPE=HIDDEN NAME="end" VALUE="!END!">
<INPUT TYPE=text NAME="quantity:!ITMNUM!" SIZE=2 VALUE="1">
!COLOR!
!SIZE!
<input type="submit" name="add_to_cart_button" VALUE="Add to Cart" STYLE="color: blue;
font-size: 11;">
<P>
<IMG SRC="!IMAGE!" ALT="!NAME!" WIDTH="150" HEIGHT="150" BORDER="0"><P>
</FORM>
</TD>
<TD WIDTH=375 VALIGN="TOP">
<font face="Arial, Helvetica, sans-serif" size=2>
<CENTER><B>!NAME!</B></CENTER>
<p>
!DESCRIPTION!
<p>
!RELATEDLINKS!
</font>
</TD></TR></TABLE>
</CENTER>
Displayed: Sample Template
|
!DESCRIPTION! !RELATEDLINKS! |