Page 1 of 1

Help with external Button or link to add product to cart

Posted: Sat Jul 07, 2012 2:30 am
by irbe
I have some salesletters done as html with their own domains.
On those pages I would like to add a button that will add this product to the cart
and forward the client to the check-out.

I would also like to do the same from a link in a sales email.

I have tried adding code like this to the sales letter page, but end up with an empty cart.

Code: Select all

<form action="http://mydomain.eu/webshop/index.php?route=checkout/cart" method="post">
<input type="hidden" name="product_id" value="53" />
<input type="hidden" name="quantity" value="1" />
<input type="submit" name="submit" value="ADD TO CART" class="submit" />
</form>

Any advice?

irbe

Re: Help with external Button or link to add product to cart

Posted: Sun Jul 08, 2012 3:17 pm
by Avvici
The solution is here: http://forum.opencart.com/viewtopic.php ... 30#p259830

If you follow the directions you can get it to work just fine.