Skip to main content
replaced http://magento.stackexchange.com/ with https://magento.stackexchange.com/
Source Link

as you have follow this link Load review form on external pageLoad 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.

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.

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.

Source Link
Amit Bera
  • 77.7k
  • 20
  • 124
  • 239

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.