I have my standard listing of the products on the manufactures page. All the products display correctly and I want to have an add to cart button under each one. This is the code I came up with and it works.
Code: Select all
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="product">
<input type="hidden" name="quantity" size="3" value="1" />
<a onclick="$('#product').submit();" id="add_to_cart" class="button"><span>Add to Cart</span></a>
<input type="hidden" name="product_id" value="<?php echo $products[$j]['id']; ?>" />
</form>
Is there another piece of code I can add to fix this issue?
Thanks
