Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Linking a add to cart button
Author « Topic »  

jrocket
Advanced Member

238 Posts

Pre-sales questions only
(More Details...)

Posted - 05/05/2018 :  17:36:27  
I have a product graphic on my home page that I want to link so that the product is added directly to the shopping cart once clicked.
Could someone tell me the code required to link this graphic?

Andy
ECT Moderator

95440 Posts

Posted - 05/06/2018 :  00:07:37  
Hi

That would be like this

<form method="post" action="cart.php">
<input type="hidden" name="id" value="XXXXXX">
<input type="hidden" name="mode" value="add">
<input type="image" src="images/mygraphic.gif" border="0">
</form>

...where XXXXX is the product id

Andy


Please feel free to review / rate our software

jrocket
Advanced Member

238 Posts

Pre-sales questions only
(More Details...)

Posted - 05/06/2018 :  15:02:46  
Thank you so much.
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000