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
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Add to cart link for product
Author « Topic »  

Aldebaran
Ecommerce Template Expert

USA
651 Posts

Posted - 03/27/2020 :  16:06:42  
What's the syntax to make an add to cart link for a particular product id? If I wanted to simply click a link and have it result in an add to cart behavior and wind up in the shopping cart as the next page. OR perhaps this is a very short form?
Jill

Jill Olkoski
Small Business Website Design
Aldebaran Web Design, Seattle WA
AldebaranWebDesign.com

Edited by - Aldebaran on 03/27/2020 16:36:15

Phil
ECT Moderator

United Kingdom
7609 Posts

Posted - 03/28/2020 :  02:26:01  
Hi Jill,

<form method="post" action="cart.php">
<input type="hidden" name="id" value="xxxx">
<input type="hidden" name="mode" value="add">
<input type="image" src="images/yourbutton.jpg">
<input type="submit" value="Submit" />
</form>

Where xxxx is the product ID



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000