1

Is it possible to use two different layouts for these two review page URL's?

http://www.domain.com/laptop1-reviews

http://www.domain.com/review/product/list/id/33661/

Both display exactly the same content.

But is it possible to display on one of the two only the reviews and on the other URL only the reviewform?

13
  • yes possible..... will give you full module of your previous question on tomorrow magento.stackexchange.com/questions/69682/…
    – Amit Bera
    Commented Jun 10, 2015 at 18:17
  • have you check the link.. i was update. the code
    – Amit Bera
    Commented Jun 11, 2015 at 9:30
  • @AmitBera What is the URL of the review form and the reviews page?
    – JGeer
    Commented Jun 11, 2015 at 10:20
  • suppose linen-blazer-585.html is product then you can this product review page by suffix add -review-form end of product url ( linen-blazer-585.html-review-form)
    – Amit Bera
    Commented Jun 11, 2015 at 10:25
  • @AmitBera Many thanks, but now on this page: linen-blazer-585.html-review-form the entire review form is displayed. So how can I remove the reviews there and only display the review form?
    – JGeer
    Commented Jun 11, 2015 at 11:36

1 Answer 1

1

as you have follow this link Load review form on external page for this answe

Now you want to remove from reviews listing whenever try to access using review page using productUrl-review-form this type url pattern.

In this set a flag using magento registry variable which tell you the request is coming from productUrl-review-form instead of review/product/list/id/33661/

on class Dev_Productreview_Controller_Router add this code

Mage::register('review_comming_from',true);

after

$request->setAlias(
                Mage_Core_Model_Url_Rewrite::REWRITE_REQUEST_PATH_ALIAS,
                $identifier
        );

then fetch the data in

app/design/frontend/YourPackage/YourTemplate/template/review/product/view/list.‌​phtml

and check the request is coming from

    if(Mage::regsitry('review_comming_from')):
    //coming from custom page
    else:
    // magento default review page
 endif;

This condition will help you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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