ShopPlus Tags (Quick-Reference)
Linking
<A HREF="/scripts/shopplus.cgi?DN=yourdomainname.com&CARTID=%cartid%&ACTION=action&FILE=/path_to file_from_root">
Forms & Buttons
<FORM METHOD="post" ACTION="/scripts/shopplus.cgi?DN=yourdomainname.com&CARTID=%cartid%&ACTION=action&FILE=/path_to file_from_root">
<INPUT TYPE="submit" VALUE="what_you_want_the_submit_button_to_say">
</FORM>
or
<FORM METHOD="post" ACTION="/scripts/shopplus.cgi?DN=yourdomainname.com&CARTID=%cartid%">
<INPUT TYPE="submit" VALUE="what_you_want_the_submit_button_to_say" NAME="POST?ACTION=action&FILE=/path_to file_from_root">
</FORM>
Product Attributes
QUANTITY: (required)
NAME="QUANTITY|ITEMID"
PRICE: (required)
NAME="PRICE|ITEMID"
VALUE="product_price"
DESCRIPTION: (optional)
NAME="DESCRIPTION|ITEMID"
VALUE="short description of product" TAX: (optional)
NAME="TAX|ITEMID" VALUE="yes or no"
DISCOUNT: (optional)
Price DISCOUNT:
NAME="DISCOUNT|ITEMID"
VALUE="q1-q2=$d1|q3-q4=$d2|q5-*=$d3"
Percent DISCOUNT:
NAME="DISCOUNT|ITEMID"
VALUE="q1-q2=d1%|q3-q4=d2%|q5-*=d3%"
SHIPPING: (optional)
NAME="SHIPPING|ITEMID"
VALUE="default_shipping|per_product_shipping"
OPTION: (optional)
NAME="OPTION|ITEMID|option_category"
VALUE="option_attribute|price_change"
Actions
ADD: allows you to add products to the order
VIEWCART: allows you to view the order, without adding any products
UPDATE: allows you to change the order
DELETE: allows you to delete the entire order
SUBMIT: allows you to submit the order to be stored in a file, without using cybercash
CYBERCASHSUBMIT: allows you to submit the order to be stored in a file, using cybercash
Variables & Tag
PRODUCT VARIABLES: all product variables must be enclosed with the <CART> and </CART> TAG. Here they are:
%QUANTITY%: shows quantity ordered
If you wish to show a text field for quantity, use
<INPUT TYPE="text" SIZE="3" NAME="%ITEMNUMBER%" VALUE="%QUANTITY%">
%DESCRIPTION%: shows product description
%PRICE%: shows product price
%OPTIONVALUE%: shows option selected, if applicable (e.g. "Small")
%OPTIONPRICE%: shows price change for the option selected, if applicable (e.g. "-$3.00")
%PRICEWITHOPTIONS%: shows product price after price change(s) due to options
%DISCOUNT%: shows price discount or percent discount (e.g "-$2.00" or "-10%")
%DISCOUNTVALUE%: shows entire discount amount
%ROWPRICE%: Price after discount (if applicable) with options (also if applicable)
CART VARIABLES: all cart variables can be used freely without the use of the <CART> TAG. Here they are:
%SUBTOTAL%: subtotal for all products ordered, before tax and shipping charges
%TAX%: tax charges
%SHIPPING%: shipping charges
%TOTAL%: total price for all products ordered after tax and shipping charges
Global Shipping & Tax Attributes
CARTSHIPPING: (optional)
NAME="CARTSHIPPING"
VALUE="global_shipping|shipping_multiplier"
CARTTAX: (optional)
NAME="CARTTAX"
VALUE="tax_rate_in_percent"
Orders Attributes
ORDERSDIRECTORY: a directory in your ssl directory where orders will be stored
ORDERSTEMPLATE: the path from the root of your site to an html template page (template used to store each order)
ORDERSEMAIL: emailaddress for where to send the ORDERSEMAILMESSAGE
ORDERSEMAILMESSAGE: notification email message of an order
ORDERSEMAILSUBJECT: subject of email message
ORDERSEMAILSENDER: email address or name of sender of the email