Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Ultimate module Creator中显示为magento创建的自定义模块_Magento - Fatal编程技术网

在Ultimate module Creator中显示为magento创建的自定义模块

在Ultimate module Creator中显示为magento创建的自定义模块,magento,Magento,我已经在Ultimate module creator中创建了一个模块。它在后端工作得很好,但它没有显示在前端。这意味着它没有显示在产品中。有人帮我吗。 谢谢假设您正在尝试将其显示在产品详细信息页面上 你可以手工做 echo$\u product->getData('attribute\u name') 或 echo$_product->getAttributeName() 如果希望属性自动显示在“附加信息”中(参见下图) 然后在安装脚本中需要 $installer->addAttrib

我已经在Ultimate module creator中创建了一个模块。它在后端工作得很好,但它没有显示在前端。这意味着它没有显示在产品中。有人帮我吗。
谢谢

假设您正在尝试将其显示在产品详细信息页面上

你可以手工做

echo$\u product->getData('attribute\u name')

echo$_product->getAttributeName()

如果希望属性自动显示在“附加信息”中(参见下图)

然后在安装脚本中需要

$installer->addAttribute('catalog_product', 'attribute_name', array(
        ...
        'visible_on_front'  => true,
        ...
    ));

选择要在中显示的属性

管理->目录->属性->管理属性


然后将“前端产品视图页面可见”更新为“是”

请提供更多信息。您是否正在尝试添加产品列表页面上未显示的产品属性?是的,先生。我创建了这个模块来添加更多属性,比如颜色和重量。如何在购买产品时显示它。thanksHello我找到了另一个模块创建者请查看此链接