Skip to content

Magento: Create Directive Button Add to Cart & Add to Wishlist

this is how i did it

add to cart: echo Mage::getUrl(‘checkout/cart/add’, array(‘product’=>$_product->getId(),’qty’=>1))

addto wishlist: Mage::helper(‘wishlist’)->getAddUrl($_product);

Share

2 Comments

Leave a Reply to Anonymous Cancel reply

Your email address will not be published. Required fields are marked *