Forum Moderators: open
I have been looking into putting an online shop on the site, all the shops I have come accross require you to use one of their set templates!!
I dont want to change the whole site design just want to have some "ADD TO BASKET" links to add the item to a basket and proceed to a checkout etc...
Can anyone give me some advice??
Thanks
(edited by: tedster at 1:30 am (utc) on May 15, 2002)
there is no need to change the look of your site at all to make it an online store, still you got to know the basics.
the simple option is to create a cookie that will store the items that the buyer want to buy, and then, make a form that send you an email with all the data.
ofcourse, there are much better ways to do it using DB & ASP.
if you need more help, please ask.
Morrison.
We can offer a lot more help if we know more about what your needs & abilities are... ;)
I want something that I can add to the HTML Code eg.
<a href="buyproduct.asp?add=computer1">BUY COMPUTER 1</a>
and that to link to a txt file with:
Computer 1: price, £599 ....
or a program that will do this
I hope I have explained well enough,
basically I want to be able to encorporate the shop into the site and be able to fully decide where and what items to add to the shop/!!!
<%response.cookies("basket") = request.cookies("basket") & "," & Item_id%>
still, this is a very ugly way to do it.
a "real" online store should include functions like:
* see what's in the basket
* add/remove items
you can search the web for "asp online shop script" and i'm sure you can find free scripts that you can use.
if you want, i can help you to build it step by step using ASP.
Morrison.
or find an "add to cart" button solution, where each item's necessary data are encoded into a hidden form/buy button configuration, and fed into a back end script...
Did that make any sense? I can never tell. ;)
you can take the cookie idea one step forward and using string handling functions you can even let the visitors what's in thier shoping cart:
it's goes like this:
<%
strBasket = request.cookies("basket")
aryBasket = split(strBasket, ",")
for i=0 to UBound(aryBasket)-1
select case aryBasket(i)
case 1 response.write "computer"
case 2 response.write "monitor"
case 3 response.write "HD"
.....
end select
%>
the same idea you can let them delete items from the shoping cart (split the string, modify, and reconstart it).
and so on...
Morrison
I have founf a free CGI shop
[arpanet.com...]
Advice
I would like to understand more on cookies
<FORM METHOD=POST ACTION="http://www.arpanet.com/cgi-sys/cgiwrap/taussig/PolishBooks/perlshop.cgi">
<input type="submit" name=ACTION value="ORDER">
<INPUT TYPE=HIDDEN NAME=ORDER_ID VALUE="420521137">
<INPUT TYPE=HIDDEN NAME=ITEM_ID VALUE="12345">
<INPUT TYPE=HIDDEN NAME=ITEM_NAME VALUE="Polish for Dummies">
Polish For Dummies $212.98 <br>
<INPUT TYPE=HIDDEN NAME=ITEM_PRICE VALUE="212.98">
<INPUT TYPE=HIDDEN NAME=thispage value=page1.html>
Qty:<INPUT TYPE=TEXT SIZE=3 MaxLength=3 NAME=QTY VALUE="1">
This book is especially good for beginners. <br>
<INPUT TYPE=HIDDEN NAME=ITEM_CODE value="d2041b61 560e1491 84baefe7 f60b3687 9ed13d99">
</FORM>
There is only one CGI file, I assume this has to be placed in a certain directory on my server??
If anyone knows of another, better system please help
about coockies:
it can be used to save data like password, username, site setting, shoping cart and so on on the client computer.
i don't know how to do it in CGI, but in VB it's something like:
[code]
response.cookies("mycookie") = "my value"
response.write = request.cookies("mycookie")
[code]
(edited by: Morrison at 10:28 am (utc) on May 15, 2002)