Magento - 无价产品不显示
Magento - Priceless products are not displayed
我处理单一产品和成组产品。我对我的产品没有问题,除了那些无价的和按需的产品。它们已启用且可见,但我看不到它们,通过直接返回产品的 URL,我看到了它们。
是配置问题吗?
谢谢
我加载产品的方式不同,
$_helper = $this->helper('catalog/output');
$currentCategory = Mage::registry('current_category');
if ($currentCategory){
$currentCategoryId = $currentCategory->getId();
$_productCollection = Mage::getModel('catalog/product')
->getCollection()
->addAttributeToSelect('*')
->addCategoryFilter($currentCategory);
}else{
$_productCollection=$this->getLoadedProductCollection();
}
显示所有启用的产品,无价产品被视为'缺货',只需将文本替换为“按需”即可。
我处理单一产品和成组产品。我对我的产品没有问题,除了那些无价的和按需的产品。它们已启用且可见,但我看不到它们,通过直接返回产品的 URL,我看到了它们。 是配置问题吗? 谢谢
我加载产品的方式不同,
$_helper = $this->helper('catalog/output');
$currentCategory = Mage::registry('current_category');
if ($currentCategory){
$currentCategoryId = $currentCategory->getId();
$_productCollection = Mage::getModel('catalog/product')
->getCollection()
->addAttributeToSelect('*')
->addCategoryFilter($currentCategory);
}else{
$_productCollection=$this->getLoadedProductCollection();
}
显示所有启用的产品,无价产品被视为'缺货',只需将文本替换为“按需”即可。