0
我需要在特定类别内的所有产品的价格附近显示文本。Magento - 在产品页面显示自定义文本,仅适用于特定类别的产品
我发现这个代码有效,但它只适用于一个特定的类别。 我需要把119,120,121,122等...更多类别ID,不只是一个。
你能帮我吗?
<?php $category = Mage::getModel('catalog/layer')->getCurrentCategory();?>
<?php if($category->getId()==119): ?>
<span class="price-specification">
<?php echo $this->__('Price per meter.'); ?><br />
<?php echo $this->__('Sold only in multiples of three.'); ?>
</span>
<?php endif; ?>
谢谢你,完美的作品:) –