Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Can I put an Add to cart button on EZ Page or external page?

Can I put an Add to cart button on EZ Page or external page?

Started by angel17846 on 5 Mar 2012, 2:44 AM · Views: 1,170

Results 1 to 3 of 3
5 Mar 2012, 2:44 AM
#1
angel17846 avatar

angel17846

New Zenner

Join Date:
Dec 2005
Posts:
57
Plugin Contributions:
0

Post #1 by angel17846

In v 1.5, I need to place an add to cart button for one particular product on an external page or an EZ Page. I have done it in other versions, but that way does not seem to work in the new version. Could someone please help?

Thanks,
Angel

5 Mar 2012, 5:11 PM
#3
angel17846 avatar

angel17846

New Zenner

Join Date:
Dec 2005
Posts:
57
Plugin Contributions:
0

Post #3 by angel17846

Yes, but I did forget to mention that I need to be able to add a text attribute. Ideally, I would like to be able to process an external form, mainly because I want to get the attribute data into text form and only use one product. Something like this:

<form name="cart_quantity" action="http://mydomain.com/index.php?main_page=product_info&cPath=1&action=add_product" method="post" enctype="multipart/form-data">

Sample attribute: <input type="text" name="id[txt_2]" size="32" maxlength="32" value="" id="attrib-2-0" /> <br /><br />

Add to Cart: <input type="text" name="cart_quantity" value="1" maxlength="6" size="4" />

<br /><br />

<input type="hidden" name="products_id" value="1" /> <input type="image" src="includes/templates/template_default/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " /> </form>

Make sense?