Magento禁止游客发表评论:阻止Magento垃圾评论

很多时候,我们开启Magento的评论模块,是为了更好的和客户交流,让客户有个舒展的通道,但是这也给那些垃圾信息发布者提供了非常便利的通道。

我们想要阻止垃圾评论,却不想伤害客户的心,所以我们允许注册客户发表评论,不允许游客发表评论,成为唯一的方法。

方法有二:

1、System –> Configuration –> Catalog –> Catalog –> Product Reviews I have “Allow guests to write reviews” set to “NO”.

2、Magento: Login required for Add Review

If you want to restriction for adding review than add below condition to form which is located at.
app\design\frontend\base\default\template\review\form.phtml
add below code to before form start

[php]if ((boolean) $this->helper(‘customer’)->isLoggedIn() ) { ?>

[/php]

add below code to after form end and before script start

[php]else //customer is NOT logged in { echo $this->__(‘To prevent SPAM we ask our customers to login before posting a review. Thank you for your understanding!’); echo ‘Please Sign In to post review ‘; } ?>

[/php]

标签

发表评论

评论已关闭。

评论列表(11)

  • feilung

    2016.1.11 15:01

    求方法

  • zise

    2015.12.28 17:12

    看看是怎么操作的。。 😳

  • enjoysilk

    2015.10.14 00:10

    magento评论哪里设置

  • Esther

    2015.5.13 18:05

    实现方法??

  • dugujianxiao

    2015.3.9 21:03

    求方法 😛 求方法 😛 求方法 😛

    • dugujianxiao

      2015.3.11 21:03

      怎么没审核???

  • littleduo

    2014.10.21 21:10

    我也想知道怎么解决。现在很困扰

    • 渋驀

      2014.10.22 20:10

      请按照文中中的方法操作即可!完全不用担心!

  • 渋驀

    2013.5.4 21:05

    上述方法仅在1.6测试通过,1.7及以后的版本请自行测试。
    欢迎讨论。

    • littleduo

      2014.10.21 21:10

      求方法

    • 渋驀

      2014.10.22 20:10

      按照文中的方法操作即可。欢迎交流!


Warning: error_log(/www/wwwroot/www.ctrol.cn/wp-content/plugins/spider-analyser/#log/log-0402.txt): failed to open stream: No such file or directory in /www/wwwroot/www.ctrol.cn/wp-content/plugins/spider-analyser/spider.class.php on line 2900