Zen Cart Logo
Forums / General Questions / Add to cart text link elsewhere on site given product_id?

Add to cart text link elsewhere on site given product_id?

Locked

Views: 1,113

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 Sep 2008, 5:26 PM
#1
hpowers avatar

hpowers

New Zenner

Join Date:
Sep 2007
Posts:
10
Plugin Contributions:
0

Add to cart text link elsewhere on site given product_id?

Given that I know the product_id for a product, is there a way to construct a link that will add the product into the cart?

For example, I wrote and published an article on another site about product_id 187. I would like to include a link that sends them to my site and automatically adds the product to their cart.

I cannot use html forms, it has to be a standard <a href style and I don't want to link to product_info page and have them click the add to cart button.

29 Sep 2008, 2:19 AM
#2
redmonds avatar

redmonds

Zen Follower

Join Date:
Jan 2006
Posts:
108
Plugin Contributions:
1

Re: Add to cart text link elsewhere on site given product_id?

I am also wanting to do this.

I want to add a 'add to cart' button for a specific product to my front page. I still want to have a front page but want to make it as easy as possible for the customer to purchase this advertised product.

Can any one assist. I have been looking at the 'add to cart' code but am not sure how to substitute a known product ID.

Thanks

Redmonds

2 Oct 2008, 8:59 PM
#3
teresa529 avatar

teresa529

New Zenner

Join Date:
Oct 2008
Location:
Rancho cordova, CA
Posts:
12
Plugin Contributions:
0

Re: Add to cart text link elsewhere on site given product_id?

I am also looking for a way to insert an "add to cart" button on my html pages. I can insert the button but it doesn't work. Where can I find the code to make the button work from an html page?
I would really appreciate help on this.
Thanks,
Teresa