Posted on: 1/8/2014 4:21:33 AM | Views : 559

Hi,
Iam trying to add,add-to-cart button in jquery.my problem is the button is visible in the site.But it is not working. I think the product id is not passed in to the add-to-cart button.How can i pass the product image id into add-to-cart-button ? Can any one help me to resolve the issue. Following is my code
$("#ero").html("<img src='" + $(this).next().find('img').attr('src') + "' width='150' + height='150'>"+"<br />"+ "<input type='button' value='@(Model.ProductPrice.AvailableForPreOrder ? T("ShoppingCart.PreOrder") : T("ShoppingCart.AddToCart"))' class='button-2 product-box-add-to-cart-button' onclick='AjaxCart.addproducttocart('@addtocartlink ');return false;' />")

Go to the complete details ...