$params = array(
'product'=> $_product->getId(),
Mage_Core_Controller_Front_Action::PARAM_NAME_URL_ENCODED => Mage::helper('core/url')->getEncodedUrl(),
'form_key'=>Mage::getSingleton('core/session')->getFormKey(),'_secure'=>false
);
$addToCartUrl= $this->getUrl("checkout/cart/addToCartFromList/", $params ).'?super_attribute['.$super_a_id.']='.$option['value'];
?>
'product'=> $_product->getId(),
Mage_Core_Controller_Front_Action::PARAM_NAME_URL_ENCODED => Mage::helper('core/url')->getEncodedUrl(),
'form_key'=>Mage::getSingleton('core/session')->getFormKey(),'_secure'=>false
);
$addToCartUrl= $this->getUrl("checkout/cart/addToCartFromList/", $params ).'?super_attribute['.$super_a_id.']='.$option['value'];
?>
No comments:
Post a Comment