Yagendoo SEF Router

Yagendoo SEF Router

Postby admin » Thu Dec 29, 2011 2:57 pm

Dear Friends,
it seems that Yagendoo router does not take into consideration any of your dynamic urls needed by various payment gateways. We strongly recommned to disable SEF generation for checkout pages and this can be done in:

/plugins/system/yagendoorouter.php

from line 149 original:
Code: Select all
if($entry) {
            $uri2 = JURI::getInstance(JRoute::_('index.php?'.$uri->getQuery()));
            if($uri->toString(array('path', 'query')) != $uri2->toString(array('path', 'query'))) {
               $uri->setQuery($uri2->getQuery(true));
               $uri->setPath($uri2->getPath());
               $app->redirect($uri->toString(), '', '', true);
            }
         }


change to:
Code: Select all
if($entry) {
            $uri2 = JURI::getInstance(JRoute::_('index.php?'.$uri->getQuery()));
            if($uri->toString(array('path', 'query')) != $uri2->toString(array('path', 'query'))) {
               $uri->setQuery($uri2->getQuery(true));
               $uri->setPath($uri2->getPath());
               if (isset($query['page']) && (strpos($query['page'], 'checkout')!==false)) $entry=false;
               if ($entry)
               $app->redirect($uri->toString(), '', '', true);
            }
         }


This will disable SEF generation for any checkout URLs. SEF is good for search engines, but might not be the best for site usage in some cases.
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Return to One Page Checkout for Virtuemart 1.1.x

cron