0
我想調用cms塊preorder_note如果產品具有屬性preorder_note的值(無關緊要)。但我無法實現它的工作。在Magento中:如果產品具有特定屬性,則獲取靜態塊
這是在頁面模板/目錄/產品做/ view.phtml
<?php if ($_product->getAttribute('preorder_note')): ?>
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('preoder_short')->toHtml() ?>
<?php endif; ?>
我在做什麼錯?