| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
trying to create a static ADDTOCART link | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
trying to create a static ADDTOCART link
Hi,
I am trying to create a static link that adds item to shopping. My link is almost identical to code below except i don't have a XCARTSESSID value. do i need this value and how would i generate it. <form name="form90" method="post" action="cart.php?mode=add"><input type="hidden" name="XCARTSESSID" value="2ec62ba0cc0fde92a2e953fd964aec26" /> Quantity: <input type=hidden name=mode value=add> <input type="text" name="amount" value="1" size="2"> <font class=FormButton>Add to cart [img]../skin1/images/ADDTOCART.gif[/img]</font> <input type=hidden name=productid value="90"> <input type=hidden name=cat value=""> <input type=hidden name=page value=""> </form> Thanks |
|||||||
#2
|
|||||||||
|
|||||||||
You do need the xcartsession value, cause that is what controls the user and his cart.
Dont know how to do it static, but I would suggest you to think about it a bit, static content is just that, its ok to have an HTML catalog, but when the user is ready to buy better take him to php again. Also, if you hack that, and later on you create the HTML catalog again you will have to hack it again manually, since all changes are lost.
__________________
It doesn\'t matter what is done... it is how it is done. ============================= XCart Version: 3.5.3 -> Dmcigars.com XCart Version: 4.1.3.... |
|||||||||
#3
|
|||||||||
|
|||||||||
why create a static link ?
if you look at modify products, do a search and then look at the bottom of the page, you should see generate html links. that should do it
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#4
|
|||||||
|
|||||||
Thanks for your response
leon: I wish it could be 1 step not more... just go straight to shopping cart. shan: The link that gets generated by search has sessid inserted . in a static page i don't have access to that value. I Should ask question another way... HOW DO I GET XCARTSESSID VALUE eg. <form> ... <input type=hidden name=XCARTSESSID value=$xcartid> ---?????? Thanks, |
|||||||
|
|||
X-Cart forums © 2001-2020
|