Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Adding Custom Add to cart button in Magento
 
pradeep_kumar67
Sr. Member
 
Avatar
Total Posts:  160
Joined:  2010-06-24
Bangalore
 

Hi,

we can create custom add to cart link or button from product id you can use below code

<button onclick="setLocation('<?php echo $this->getAddToCartUrl($_item) ?>')" class="button btn-cart" title="Add to Cart" type="button"><span><span>Add to Cart</span></span></button>
 
Magento Community Magento Community
Magento Community
Magento Community
 
nathsumit
Jr. Member
 
Total Posts:  5
Joined:  2012-09-23
 

please help me out regarding add to cart button. I had a talk to you over the phone. my email id is :

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top