ShopSite Custom Template Tags

Global Tags
Page Tags
Product Tags
Search Tags
Shopping Cart Tags
Customer Registration Tags
Gift Certificate Tags
All Tags

Global Tags


(These tags can be used in any template type)

INCLUDE

[-- INCLUDE filename --] Places the contents of filename into the output file.
[-- INCLUDE filename PROCESS --] Reads in filename and processes any custom template tags, then places the processed contents into the output file.

VAR

[-- VAR.somename value --] Set somename to value
[-- VAR.somename STORE.field --] Set somename to the value of the STORE field
[-- VAR.somename PAGE.field --] Set somename to the value of the specified page database field
[-- VAR.somename PRODUCT.field --] Set somename to the value of the specified product database field
[-- VAR.somename --] Display the value of somename
[-- VAR.somename INC --] Increment somename value by one
[-- VAR.somename DEC --] Decrement somename value by one

IF

[-- IF parameter --] Tests if a parameter is checked or not empty (True), and processes the following code if True.
[-- IF parameter1 parameter2 --] Tests if parameter1 is equal to parameter2 (True), and processes the following code if True.
[-- ELSE --] Start the code block that is used if the IF test is false.
[-- ELSE_IF parameter --] Tests another parameter if the IF test and preceding ELSE_IF tests were false, and processes the following code if True.
[-- ELSE_IF parameter1 parameter2 --] Same as ELSE_IF but with two parameters.
[-- END_IF --] Marks the end of the IF/ELSE blocks

CALL External Program

[-- CALL program (parameters,...) --] Invokes a program, may have many parameters

Display Message

[-- DISPLAY_MESSAGE "message" --] Display message on page generation screen
[-- DISPLAY_MESSAGE "message" VAR.name --] Display message and value of VAR.name on page generation screen
[-- DISPLAY_MESSAGE "message" PAGE.name --] Display message and value of PAGE.nameon page generation screen
[-- DISPLAY_MESSAGE "message" PRODUCT.name --] Display message and value of PRODUCT.name on page generation screen

Store Tags


(Can be in all templates, and can be used with the REMOVE_HTML parameter)

Store Identification

[-- STORE.Name --] The store's name
[-- STORE.Type --] The store's type, i.e. PROFESSIONAL, MANAGER, or STARTER.
[-- STORE.ID --] Store ID (encrypted)
[-- STORE_Serial_Number --] Store serial number

Store URLs

[-- MyStoreURL --] String from the "My Store" URL field, generally the URL to the store's index.html page.
[-- STORE.Output_URL --] URL of the store's HTML directory.
[-- OUTPUT_DIRECTORY_URL --] URL of the store's HTML directory.
[-- SHOPPING_CART_URL --] URL to store's shopping cart
[-- SHOPPING_CART_URL Base --] URL to the store's shopping cart directory

E-Mail Addresses

[-- STORE.Email --] Merchant e-mail address.
[-- STORE.EmailTo --] A mailto link using merchant's e-mail address.

Date and Time

[-- STORE.Date --] Server date
[-- STORE.Time --] Server time

Text Field Tags


(The default values for these fields are shown here, but the merchant can change the text.)
[-- STORE.Product --] Product
[-- STORE.ProductName --] Name
[-- STORE.Price --] Price
[-- STORE.OnSaleText --] On Sale!
[-- STORE.SKU --] SKU
[-- STORE.Item --] Item
[-- STORE.Items --] Items
[-- STORE.Contains --] Contains
[-- STORE.Subtotal --] Subtotal
[-- STORE.Qty --] Qty
[-- STORE.TotalQuantity --] Total Quantity
[-- STORE.Back --] Back
[-- STORE.URL --] Store URL:
[-- STORE.YourIP --] Your IP Address is
[-- STORE.AddToCart --] Text or image for the Add To Cart button
[-- STORE.DisplayAddToCartText --] Returns "checked" if [-- STORE.AddToCart --] is text.
[-- STORE.ViewCart --] Text or image for the View Cart button
[-- STORE.DisplayViewCartText --] Returns "checked" if [-- STORE.ViewCart --] is text.
© 2007, ShopSite, Inc.
ShopSite Shopping Cart Software