I am trying to get a link in the product page to popup the review form, instead of going to the reviews list, which I particularly don’t like. I prefer everything to be in the same page and prevent the user from having to go back and forth.
I have created this link in the product view.phtml:
<a href="#" onclick="popWin('<?php echo $this->helper('catalog/product_review')->getReviewUrl() ?>','review','width=500,height=500,resizable=yes,scrollbars=yes')"><?php echo $this->__('Review Item') ?></a>
In the catalog.xml I have included this section:
Product review form popup
<!-- Mage_Catalog -->
<block type="review/form" name="product.info.review.form" as="review_link" template="review/form.phtml" />
Although I don’t know if I should be doing it in the review.xml
I figure I have to create the class Catalog/Helper/Product/Review.php and Catalog/Block/Product/Review.php but that is as far as my PHP takes me.
Can anyone help with this code as I think it would be helpfull.