2

I am using "rwd" theme in new magento installation, i am facing an issue with product reviews tab in this theme.

When i click on "Be the first to review this product." It opens up a form and which i click on "Submit Review" after filling up the form it redirects me to the shopping cart page and adds that product into cart automatically. Where as it should give a message that "Your review is awaiting for moderation" and after admin approves the review it should get displayed on the product details page.

  • 2
    You have call a form write review form under add to cart form that why it goes to cart page – Amit Bera Apr 27 '15 at 7:02
  • Thanx for instant reply @AmitBera, But i haven't done any modifications in theme templates files or layout files etc. Its just a new installation. – Soeb Safi Apr 27 '15 at 7:21
  • Yes, it was called before "Add to cart". You were right @AmitBera, it worked thanx for your time. – Soeb Safi Apr 27 '15 at 11:12
2

As as comment,it was issue with wrong calling for review form at view.phtml file.

There review form block ,is call under add to cart <form>...</from>.

<form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>
....
<?php // $this->getChildHtml('review_form'); /* remove from here */?>

</form>
<?php  $this->getChildHtml('review_form'); //call here  ?>

You need move from there and out below end

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.