本文整理汇总了PHP中Mage_Catalog_Block_Product_List::getAddToCartUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Catalog_Block_Product_List::getAddToCartUrl方法的具体用法?PHP Mage_Catalog_Block_Product_List::getAddToCartUrl怎么用?PHP Mage_Catalog_Block_Product_List::getAddToCartUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Catalog_Block_Product_List
的用法示例。
在下文中一共展示了Mage_Catalog_Block_Product_List::getAddToCartUrl方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getAddToCartUrl
public function getAddToCartUrl($product, $additional = array())
{
if (!isset($additional['_query'])) {
$additional['_query'] = array();
}
$additional['_query']['flycart_item'] = $product->getId();
return parent::getAddToCartUrl($product, $additional);
}
示例2: getAddToCartUrl
public function getAddToCartUrl($product, $additional = array())
{
$_modules = Mage::getConfig()->getNode('modules')->children();
$_modulesArray = (array) $_modules;
if (isset($_modulesArray['GoMage_Procart']) && $_modulesArray['GoMage_Procart']->is('active')) {
if (Mage::helper('gomage_procart')->isProCartEnable() && Mage::getStoreConfig('gomage_procart/qty_settings/category_page')) {
$additional['_query']['gpc_prod_id'] = $product->getId();
}
}
return parent::getAddToCartUrl($product, $additional);
}
示例3: getAddToCartUrl
public function getAddToCartUrl($product, $additional = array())
{
if ($product->getWeb2printDocumentId() == '') {
return parent::getAddToCartUrl($product, $additional);
} else {
switch ($product->getTypeId()) {
case 'configurable':
case 'bundle':
return $product->getProductUrl();
break;
default:
return $this->helper('web2print')->getAddToCartUrl($product, $this);
break;
}
}
}
示例4: getAddToCartUrl
public function getAddToCartUrl($product, $additional = array())
{
if ($this->helper('icart')->isEnabled()) {
return $this->helper('icart')->getAddUrl($product, $additional);
} else {
return parent::getAddToCartUrl($product, $additional);
}
}