Magento-不展示无价产品

Magento-不展示无价产品,magento,product,Magento,Product,我使用单一产品和分组产品。除了那些价值连城的随需应变的产品外,我对我的产品没有任何问题。它们是启用的和可见的,但我没有看到它们,通过直接返回产品的URL,我看到了它们。 这是配置问题吗? 谢谢。我以不同的方式加载产品 $_helper = $this->helper('catalog/output'); $currentCategory = Mage::registry('current_category'); if ($currentCategory){ $currentCategor

我使用单一产品和分组产品。除了那些价值连城的随需应变的产品外,我对我的产品没有任何问题。它们是启用的和可见的,但我没有看到它们,通过直接返回产品的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();
}

显示所有启用的产品,无价产品被视为“缺货”,只需将文本替换为“按需”。

我以不同方式加载产品

$_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();
}

显示所有启用的产品,无价产品被视为“缺货”,只需将文本替换为“按需”。

尝试重新编制索引,清除缓存,然后再次检查。我投票关闭此问题,因为堆栈溢出是一个问答网站。你的问题不是关于编程。也许你应该把它贴上?可能有一些条件限制了默认的显示产品的价格,我试过了,但没有结果。感谢您重新建立索引,清除缓存,然后再次检查。我投票结束这个问题,因为堆栈溢出是一个问答网站。你的问题不是关于编程。也许你应该把它贴上?可能有一些条件限制了默认的显示产品的价格,我试过了,但没有结果。谢谢