MYWEBSITETOOL.COM SHOPPING CARTS - SAMPLE HTML CODE
Use the Quick-Setup HTML code below to get you started integrating the shopping cart into your website.
Don't Know HTML! No problem, with your database driven shopping carts comes full access to our Advanced HTML generation tools.
Note: If you are using a "Plug in" cart please integrate the following html code allong with the sample code below to disable the database look up:
WEBSITE PRODUCT INTEGRATION TYPE 1 (Does Not Function)
For HTML Only Shopping Carts, you must add all product fields to your website HTML. This type of shopping Cart does not use our secure database to store any product information.
Below is a list and example of all available fields you may use in your WEBSITE HTML code.
This field is used to tell the shopping cart software you are using the HTML only Shopping Cart. If this field is not used on HTML Shopping Carts, and error will result. <INPUT TYPE="hidden" NAME="ndb" VALUE="1">
Product ID
productid
Use this field to identify yourproduct. <INPUT TYPE="hidden" NAME="productid" VALUE="xx">
Purchase Quantity
quantity
Quantity field, this may be different types of input fields. ie. Text input box, Dropdown menu, or hidden field. The following is an example of a text input field.
This is the Currency you will be charging your customer in. This MUST be the standard 3 character code as if you are using a Real-Time CC processing server, an incorrect Currency field will result in a Payment Error. Listed below is the code required for the US Dollar. <INPUT TYPE="hidden" NAME="currency" VALUE="USD">
Weight
weight
Use the weight field to charge shipping based on order weight. For further details refer to SHIPPING OPTIONS in the side menu. <INPUT TYPE="hidden" NAME="weight" VALUE="xx">
This field is used to indicate the status of the product. 200=In Stock, 201=Back Ordered, 202=Coming Soon, 203=Disabled, 204=Sold Out. <INPUT TYPE="hidden" NAME="status" VALUE="xx">
Picture
picture
Use this field to display images of your products in the Shopping Cart basket. The value of this field must be the full URL to your image. i.e. http://www.companyname/images/image.gif <INPUT TYPE="hidden" NAME="picture" VALUE="xx">
Discountable
discount
Include this item in discounts. i.e. set to 0 if this item is a donation and can not be discounted, or set to 1 if the item can be discounted using discount coupons or specials. <INPUT TYPE="hidden" NAME="discount" VALUE="xx">
Item Taxable
tax
Apply appropriate taxes to this item. <INPUT TYPE="hidden" NAME="item_taxable" VALUE="xx">