Method 1:
$_productId = 166;
$_product = Mage::getModel('catalog/product')->load($_productId);
$_url = Mage::helper('checkout/cart')->getAddUrl($_product);
echo $_url;
Method 2:
echo $this->getSubmitUrl($_product);
Tuesday, November 25, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment