Monday, 19 September 2011

Magento: Login required for Add Review

If you want to restriction for adding review than add below condition to form which is located at.
add below code to before form start
if ((boolean) $this->helper('customer')->isLoggedIn() )
{ ?>
add below code to after form end and before script start
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 ';

No comments:

Post a Comment