Post by irbe » Sat Jul 07, 2012 2:30 am

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

Newbie

Posts

Joined
Fri Jul 06, 2012 3:50 am

Post by Avvici » Sun Jul 08, 2012 3:17 pm

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.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC
Who is online

Users browsing this forum: No registered users and 4 guests