I've searched around for an answer to this question but couldnt find one.
How can I add an "Add to Cart" button for each item on the wishlist page?
Here's the code I've tried adding to /modules/Wishlist/wishlist.tpl with no success
Code:
<FORM method=post name="orderform" action="cart.php">
<INPUT type=hidden name=mode value="add">
<INPUT type=hidden name=productid value="{$wl_products[product].productid}&quantity={$wl_products[product].amount}">
{include file="buttons/add_to_cart.tpl"}
</form>
When I try this I get a Javascript error.
I've tried using a regular submit button as well but the item does not get added to the cart.
Thanks for the help !