7
A
回答
6
确保属性被标记为“在前端使用”,然后在模板名称写出下面要看到的属性:
<?php print $_product->getBrandInfo(); ?>
10
要显示属性的产品页面上的内容您需要在view.phtml文件中添加以下代码。
$_product->getResource()->getAttribute('brand_info')->getFrontend()->getValue($_product);
5
下面的代码添加到您的catalog/product/view.phtml
或catalog/product/list.html
模板文件:
echo $_product->getAttributeText('your_attribute_code');
只要改变了your_attribute_code
你的属性代码,你就大功告成了。
1
我发现,增加view.phtml是最适合我
print $_product[brand_info];
相关问题
- 1. Magento如何在产品页面中显示产品属性?
- 2. 显示属性的属性id不在magento的产品页面
- 3. 如何通过CMS产品页面上添加产品属性阻止Magento的
- 4. Magento自定义页面上的显示产品按属性
- 5. 更新magento产品页面上的主要产品页面
- 6. Magento产品页面
- 7. 如何在产品页面上显示相关产品属性(分组产品)
- 8. Magento的产品页面
- 9. Magento的:在产品页面
- 10. Magento的从产品页面
- 11. 添加Magento产品属性
- 12. Magento - 'samples_title'产品属性
- 13. Magento - 产品页面中的输出分层属性链接
- 14. Magento列表在CMS页面中按属性的产品,如何?
- 15. magento链接到产品属性不起作用的cms页面
- 16. Magento - 已计算产品属性(属性)
- 17. Magento - 产品页面问题
- 18. Magento产品页面Breadcrumbs SEO
- 19. 如何在Magento中显示产品属性选项产品页面?
- 20. 在CMS页面上寻找产品 - Magento
- 21. 极限数量的产品页面上显示产品reveiws magento
- 22. Prestashop:在产品清单/产品页面上添加单个产品属性
- 23. 产品属性显示在产品页面上的静态块内部?
- 24. Magento:自定义产品属性以选择CMS页面
- 25. 如何将属性添加到Magento 2.1.x产品页面
- 26. 产品页面上的Magento错误无效的属性名称:custom_use_parent_settings
- 27. Magento产品页面上的选择性HTML块?
- 28. Magento:购物车页面上可配置产品的可用性
- 29. 在产品类别页面上获得相关产品Magento
- 30. Magento:在产品页面上显示两个产品
这个工作,但它需要_product $,而不是$产品 – a1anm 2010-06-27 15:24:31