Zen Cart Logo
Forums / Customization from the Admin / How to link "Add to Cart" button on web page

How to link "Add to Cart" button on web page

Locked

Views: 3,008

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
3 Oct 2008, 2:41 PM
#1
teresa529 avatar

teresa529

New Zenner

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

How to link "Add to Cart" button on web page

I would like to add a "Add to Cart" button on my regular site next to the area that describes the product. I copied the code from my Zencart page and get the button on the page but cannot get the button to work.
The page I am adding the button to is https://www.everbritecoatings.com/jewelry2.htm.
I have searched the help and the forums and have spent hours & hours trying to figure this out.
I would really appreciate any help.
Thanks very much,
Teresa

3 Oct 2008, 3:12 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: How to link "Add to Cart" button on web page

Zencart doesn't really work that way - it's not meant to be a add-on cart script for an existing site.

If you do make the link work, if a customer who is logged in to Zencart moves from your main site to Zencart and back again, his Zencart session may be messed up.

5 Oct 2008, 5:49 PM
#3
thecrook25 avatar

thecrook25

New Zenner

Join Date:
Feb 2008
Posts:
7
Plugin Contributions:
0

Re: How to link "Add to Cart" button on web page

I tried doing something similar. I put the product_info page inside of an iframe on my html site. When the user clicks a thumb on the html site it opens an iframe with the product_info page above it. That feature works fine, but the problem I am having now is that the when the user clicks "add to cart" it opens up the checkout inside of the iframe. I want the add to cart link to open a new page. Anyone know what part of the code controls where the add to cart button links to? I want to change the target for the add to cart button to _top.