![]() |
|||
| Your Links Here [Link1] [Link2] - Your Banner Image displayed above after setting the file name in control panel. 750 Pixel Width Max | |||
|
|
Methods to display Products/ Items on your own web pages.
The first optional method requires the Item/Product to be entered into the database. However this method is also much simpler to apply (as opposed to method 2).
Method 1
*This method requires the Product's details to be entered into the database.
Use a Hyperlink, on your own web page, linked to the product_details.asp page, included with your shopping cart.
After entering a product's information into the database, you can create your own page any way you like.
Place a hyperlink near the product that takes the customer to the product_details.asp page (included with cart).
You add a Query String to the hyperlink. So when a customer clicks the link, the product is displayed on the product_details.asp page (included with cart).
Once the customer is on the product_details.asp page, they have the full details of the Product/Item and an "Add to Cart" button.
Just add ?ItemNum=Your-ItemNumber to the end of the file name (product_details.asp) in the hyperlink e.g.:
Example 1
*Replace Example1001 with your item number.
Example 2
*Use only alphanumeric characters, A-Z and 0-9, and/or a hyphen ( - ) in your Item Number.
*Replace Example1001 with your item number.
Save the page with any extension (.htm, .html or .asp).
This page is a (dot) .htm page. Here is an example link: Buy Me! (this link has to go up 2 levels hence the ../../)
That's it for Method 1! The Customer clicks the link and your product is displayed on the product_details.asp page.
[ Example Page ]
Method 2
Use a FORM, on your web page, to add an Item directly to the shopping cart.
This Method DOES NOT REQUIRE the Item/Product to be in the database.
You must enter all of the product's information, into the form fields.
To use this Method do the following:
1. Copy the following code into the page above the <html> tag.
Here we set the Cart Id to keep track of the customer's items in the cart.
This should be the very first thing, on every page, for which you want to put items.
Save the page with a (dot) .asp extension.
*Note: Copy and paste into notepad to remove formatting then copy and paste into your html.
<! === Start Copying the "Set Cart Id code" below this line. *Note: You need the <% and %> code too === >
<% Dim strCartId IF Session("CartId") <> "" THEN strCartId = Session("CartId") ElseIF NOT Request.Cookies("CartId").HasKeys THEN strCartId = Session.SessionId Session.Timeout = 180 Session("CartId") = Session.SessionId ELSE strCartId = Request.Cookies("CartId")("CartId") Session.Timeout = 180 Session("CartId") = strCartId END IF If Session("CartId") <> "" Then Response.Cookies("CartId")("CartId") = strCartId Response.Cookies("CartId").Expires = Now() + 9999 %>
<! ======================== End Set Cart Id code above this line ========================= >
OR use the cartid.asp include page instead of the script above. e.g. <!--#include file="cartid.asp"--> place in the page before the <html> tag. Your page must be in the scart folder or change the path. e.g. <!--#include file="scart/cartid.asp"--> The cartid.asp page has the above script in it.
2. Copy the following FORM html code into the page and edit as needed.
*Note: The Form is explained in detail at the bottom of this readme file. Please read it.
Copy the Form into the page near the Item that you want to sell. (below, above or beside it)
You may place the form fields at ANY POSITION in the page AS LONG AS THE FIELDS ALL STAY WITHIN THE <FORM> and </FORM> Tags.
[ Example Page ]
*Note: Copy and paste into notepad to remove formatting then copy and paste into your html.
<!-- ======================== Start Copying the Form below this line ===================== --->
<form method="POST" action="cart_form_add.asp" name="add_to_cart">
<input type="text" name="Quantity" size="4" value="1"> <select size="1" name="OptionSet1"> <option value="Small" selected>Small</option> <option value="Medium">Medium</option> <option value="Large">Large</option> <option value="XLarge">XLarge</option> <option value="XXLarge">XXLarge</option> <option value="XXXLarge">XXXLarge</option> </select>
<select size="1" name="OptionSet2"> <option value="Red" selected>Red</option> <option value="White">White</option> <option value="Blue">Blue</option> </select>
<select size="1" name="OptionSet3"> <option value="Round" selected>Round</option> <option value="Square">Square</option> </select>
<input type="hidden" name="CartId" value="<%= strCartId %>">
<input type="hidden" name="ItemNum" value="Your-Item-Number">
<input type="hidden" name="Description" value="Type your description here.">
<input type="hidden" name="Weight" value="1">
<input type="hidden" name="Price" value="125.25">
<input type="hidden" name="Page" value="shop_template.asp">
<input type="submit" value="Add to Cart" name="B1" style=" border: 1 solid blue; background-color:black; font-family: Verdana; font-size: 8pt; color: white;">
</form>
Optional Fields Use the following two optional fields if the items is downloadable.
1. <input type="hidden" name="Download" value="Yes">
1. Download = Yes (tells the systems this is a downloadable item) 2. FileName = yourfilename (put the file in your scart/pd folder and enter the exact file name)
Adding these two hidden fields will make your item downloadable at check out. If the item is not downloadable omit these two fields.
<!-- =======================Stop Copying Form above this line===================== -->
[ Example Page ]
<!-- ============================Form Breakdown============================ --->
01. <Form method="POST" action="cart_form_add.asp" name="add_to_cart">
02. <input type="text" name="Quantity" size="4" value="1">
03. <select size="1" name="OptionSet1"> 04. <option value="Small" selected>Small</option> 05. <option value="Medium">Medium</option> 06. <option value="Large">Large</option> 07. <option value="XLarge">XLarge</option> 08. <option value="XXLarge">XXLarge</option> 09. <option value="XXXLarge">XXXLarge</option> 10. </select>
11. <select size="1" name="OptionSet2"> 12. <option value="Red" selected>Red</option> 13. <option value="White">White</option> 14. <option value="Blue">Blue</option> 15. </select>
16. <select size="1" name="OptionSet3"> 17. <option value="Round" selected>Round</option> 18. <option value="Square">Square</option> 19. </select>
20. <input type="hidden" name="CartId" value="<%= strCartId %>">
21. <input type="hidden" name="ItemNum" value="Your-Item-Number">
22. <input type="hidden" name="Description" value="Type your description here.">
23. <input type="hidden" name="Weight" value="1">
24. <input type="hidden" name="Price" value="125.25">
25. <input type="hidden" name="Page" value="shop_template.asp">
26. <input type="submit" value="Add to Cart" name="B1" style=" border: 1 solid blue; background-color:black; font-family: Verdana; font-size: 8pt; color: white;">
27. </form>
Optional Fields Use the following two optional fields if the items is downloadable.
1. <input type="hidden" name="Download" value="Yes">
1. Download = Yes (tells the systems this is a downloadable item) 2. FileName = yourfilename (put the file in your scart/pd folder and enter the exact file name)
Adding these two hidden fields will make your item downloadable at check out. If the item is not downloadable omit these two fields.
<! ==============================Form Explanation================================= >
01. The FORM TAG. Method must be POST. The action depends on what folder you put the page (see a and b below).
02. The Quantity Input Box. This box allows a customer to choose how many of this Item they want to buy. Required!
[ Breakdown ]
04. Select option. (Applies to 04 thru 09 in the breakdown above.)
11. OptionSet2. Second Select Box. Use is Optional. If used, must be named OptionSet2. Explanations 03 and 04 above apply.
[ Breakdown ]
16. OptionSet3. Third Select Box. Use is Optional. If used, must be named OptionSet3. Explanations 03 and 04 above apply.
20. CartId Field. This is a hidden field. It is required.
21. ItemNum Field. This is a hidden field. It is required.
[ Breakdown ] 22. Description Field. Type the Product's Description.
23. Weight Field. The weight field is used to calculate Shipping. THIS FIELD IS REQUIRED!
[ Breakdown ] 24. Price Field. THIS FIELD IS REQUIRED!
[ Breakdown ]
*Notes:
1. Copy the Form into the page near the Item you want to sell. (below, above or beside it)
2. You may place the form fields at ANY POSITION in the page AS LONG AS THE FIELDS ALL STAY WITHIN THE <FORM> and </FORM> Tags.
3. All form fields must RETAIN their ORIGINAL NAME value. e.g. name="Quantity" the word Quantity cannot change.
4. All fields other than the Option Select Boxes and Page field, are required.
5. The Weight and price fields MUST contain only numbers. e.g. 1 or 1.25 or 100.32 DO NOT USE THE $ SIGN.
6. The Item/Product does NOT HAVE TO BE in the Database.
7. PUT ALL YOUR PAGES IN THE scart FOLDER. This will greatly simplify the urls in the links.
[ Example Page ] [ Control Panel ] [ Help Main ] |