Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Is it possible to have an add to cart form on an exterior page?

Is it possible to have an add to cart form on an exterior page?

9 Jul 2016, 1:21 PM
#1
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Post #1 by delia

It's been done before for version 1.5.1 but the code no longer works for 1.5.5. Is it possible to do this for 1.5.5? I'm thinking that there might be other hidden form fields that need to be added. Anyone have any idea?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

9 Jul 2016, 2:06 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,156
Plugin Contributions:
56

Post #2 by lat9

What code is the code? Is that a plugin or some custom programming?

9 Jul 2016, 3:24 PM
#3
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Post #3 by yaseent

I've tested this out on 1.5.5 and it works fine, as long as the product doesn't have attributes to select:

example.com/index.php?action=buy_now&products_id=2

You don't need a form. Just a link with that format, and the substituting the product ID number for the one you want added to the cart.

18 Jul 2016, 7:17 PM
#4
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Post #4 by delia

Thanks, I just saw this. The site had a form on it with dropdowns so the whole thing needed be changed - 4 hours of my life I will not get paid for!!

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo