Magento详细页中的一些系统属性调用方法。
magento详细页的文件路径:/app/design/frontend/default/你的主题/template/catalog/product/view.phtml
常见的几种属性代码如下:
简单描述(short description):
<?php echo $this->helper('catalog/output')->productAttribute($this->getProduct(), nl2br($_product->getShortDescription()), 'short_description') ?>
描述(description):
<?php echo $this->helper('catalog/output')->productAttribute($this->getProduct(), nl2br($this->getProduct()->getDescription()), 'description') ?>
产品名称(name):
<?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName(), 'name') ?>
产品编号(sku):
<?php echo $this->htmlEscape($_product->getSku()) ?>
产品价格(price):
<?php echo $_coreHelper->currency($_finalPrice,true,false) ?>