我一直在catalog / view / options / type / configurable.phtml中编辑,而另一个在模板上工作的人一直在编辑。突然,整个可配置的选项块(呈现configurable.phtml)在页面中丢失了。以下块仍在view.phtml中:
<?php if ($_product->isSaleable() && $this->hasOptions()):?>
<?php echo $this->getChildChildHtml('container1', '', true, true) ?>
<?php endif;?>
和
<?php if ($_product->isSaleable() && $this->hasOptions()):?>
<?php echo $this->getChildChildHtml('container2', '', true, true) ?>
<?php endif;?>
还有哪些可能导致可配置选项块消失?服务器或Magento日志中没有适用的错误。也没有任何JavaScript错误。我已用新副本替换了catalog.xml,view.phtml和configurable.phtml。 Magento没有缓存,我用cntrl + shift + r刷新页面以防止浏览器缓存。我从if语句中取出了上面的代码......仍然没有选项块!
答案 0 :(得分:2)
我无法相信我在六小时内排除故障,发现我需要重新索引......