【问题标题】:How to enable the default "product rating review" form in product page,In Megento 1.9如何在 Magento 1.9 中启用产品页面中的默认“产品评级评论”表单
【发布时间】:2017-09-06 11:26:24
【问题描述】:

我正在尝试在我的产品页面上启用默认评分评论表单。我面临的问题是出现“成为第一个评论产品的人”,但链接不起作用。 This is my product page 当我第一次点击链接时,链接会重定向到另一个页面(URL:localhost/Magento/review/product/list/id/28/#review-form)之类的。 this is my second page and again when I clicked on the link nothing happens

我所做的必要更改

在管理面板中,启用产品评级。然后“目录->评级和评论->管理评级”我将排序顺序设置为“价值、价格和质量”。

在后台

<div class="product-collateral toggle-content tabs">
    <?php if ($detailedInfoGroup = $this->getChildGroup('detailed_info', 'getChildHtml')):?>
        <dl id="collateral-tabs" class="collateral-tabs">
            <?php foreach ($detailedInfoGroup as $alias => $html):?>
                <dt class="tab"><span class="nav nav-tab "><?php echo $this->escapeHtml($this->getChildData($alias, 'title')) ?></span></dt>
                <dd class="tab-container">
                    <div class="tab-content"><?php echo $html ?></div>
                </dd>
            <?php endforeach;?>
        </dl>
    <?php endif; ?>
</div>

谁能帮忙解决这个问题。谢谢!

【问题讨论】:

  • 您检查过您的网站索引吗?如果链接没有按预期工作,那通常是我首先去的地方
  • 是的,我检查了问题不是来自那里。

标签: php jquery magento magento-1.9


【解决方案1】:

按照以下说明进行操作:

Step1 :- 进入应用程序-> 设计-> 前端-> 你的包名(base/rwd)-> 你的主题(默认...)-> 布局-> review.xml

Step2 :- 将以下代码粘贴到 review.xml 并刷新产品视图页面。转到选项卡,现在您可以看到评论表单。

<catalog_product_view>
        <reference name="product.info">
            <block type="review/product_view_list" name="product.reviews" as="reviews" template="review/product/view/list.phtml" after="additional">
                <action method="addToParentGroup"><group>detailed_info</group></action>
                <action method="setTitle" translate="value"><value>Reviews</value></action>
                <block type="review/form" name="product.review.form" as="review_form" />
            </block>
        </reference>
    </catalog_product_view>

【讨论】:

  • 它的工作原理就像,评论表单现在显示在链接下方(成为第一个评论此产品的人),提交后重定向到购物车页面并且评论甚至没有被提交,我在管理面板上查看。
  • 但是重定向 think 没问题。我可以改变它,但问题是我想要点击链接后的评论表单。
  • 其实我很困惑我不知道为什么链接会重定向到这个页面(URL:localhost/Magento/review/product/list/id/28/#review-form)。您能否告诉我应该在
  • 请将当前 url 与 #customer-reviews 类似 __('添加您的评论') ?>
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-06-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多