电子商务平台中,产品的详细页是重中之重。一些刚接触magento不久的朋友对详细页中的一些系统属性并不太熟悉,今天我就给大家说明下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) ?>

 360magento提供专业的基于magento系统的跨境电商平台网站开发和托管服务,如有需求或相关咨询,请与我们联系