Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/247.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
Php 如何在产品评论页面中显示产品详细说明?_Php_Magento - Fatal编程技术网

Php 如何在产品评论页面中显示产品详细说明?

Php 如何在产品评论页面中显示产品详细说明?,php,magento,Php,Magento,我有一个布局,需要在评论页面上的产品描述。我怎样才能做到这一点 Magento版本是1.6 看起来好像审查页面正在加载产品视图模板,只是没有一些信息;从product/view.phtml: <div id="product-details"> <?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?> &

我有一个布局,需要在评论页面上的产品描述。我怎样才能做到这一点

Magento版本是1.6

看起来好像审查页面正在加载产品视图模板,只是没有一些信息;从product/view.phtml:

<div id="product-details">
    <?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
            <div class="box-collateral <?php echo "box-{$alias}"?>">
                <?php echo $html; ?>
            </div>
    <?php endforeach;?>
</div>


什么版本的Magento?如何加载产品集合

您需要在下面的中自定义一个模板位置,确保移动到模板中,并且不要编辑基础文件

/var/www/vhosts/site.com/www/app/design/frontend/base/default/template/review/

<?php echo $_helper->productAttribute($_product, $_product->getDescription(), 'description') ?> 

这是如何在标准产品视图中加载的

您可能需要通过

code
code
设置$\u产品变量。谢谢!