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