好!我正在进行这个从过去两周的magento项目。这是我的第一个magento应用程序。
我在后台为像这样的magento产品添加了一些新属性。。。。
Backend -> Catalog -> Manage Products -> 'Selected one product' -> General setting -> Create New Attribute
假设我在后台添加了locking
(属性代码(属性,现在我想在产品登录页的前端显示这个属性。
我试着这样打电话frontend'mgstheme'luxury'template'catalog/product/view/description.phtml
<?php echo $_product->getLocking(); ?>
但它是不可见的
我做错了吗?如果是,请告诉我
最初,对于您想在产品页面或类别页面上使用的每个产品属性,您必须告诉Magento是否应该提供它们。
要执行此操作,请在Magento Admin -> Catalog -> Manage Attributes
下查找属性。然后在靠近底部的前端属性下,您将找到以下选项:Visible on Product View Page on Front-end
和Used in Product Listing
。将其值设置为YES。
这将允许您分别在产品页面和类别页面上显示属性。