Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

trying to create a static ADDTOCART link

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-17-2003, 07:33 AM
 
xcartman xcartman is offline
 

Newbie
  
Join Date: Dec 2003
Posts: 7
 

Default 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
Reply With Quote
  #2  
Old 12-17-2003, 08:26 AM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

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....
Reply With Quote
  #3  
Old 12-17-2003, 09:14 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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
Reply With Quote
  #4  
Old 12-17-2003, 11:04 AM
 
xcartman xcartman is offline
 

Newbie
  
Join Date: Dec 2003
Posts: 7
 

Default

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,
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:21 PM.

   

 
X-Cart forums © 2001-2020