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

  1. Yoooo Yoooo

    $this->helper(‘checkout/cart’)->getAddUrl($_product);
    Mage::helper(‘checkout/cart’)->getAddUrl($_product);

Leave a Reply

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

Time limit is exhausted. Please reload CAPTCHA.