我已经在magento上开发了一个市场电子商务,现在我想在产品页面上显示卖家信息。姓名,地址,图片等。
1 - 如何在magento 1.9中实现这一目标?
2 - 是否可以为制造商属性创建子属性?
答案 0 :(得分:2)
您是否将数据存储在属性中?
如果是文本属性,请使用它来回显它:
<?php echo $_product->getManufacturer(); ?>
其中manufacturer是属性的ID。
如果是下拉列表,请使用此信息来回应它:
<?php echo $_product->getAttributeText("manufacturer"); ?>
确保该属性在前端设置为可见。
然后你可以使用Dependent属性,它们就像子属性一样。
答案 1 :(得分:0)
<?php echo $_product->getAttributeText('manufacturer');?>
这将打印选定的Dropdown标签。