Sat 12 Sep |
|
The new "Joomla inbuilt SEF Router for Virtuemart" works problem free apart from re-directing to the "component=com_virtuemart" page when you click the "Checkout" button". The problem is the router.php re-writes the url to "http://www.yourshop.com/shop/checkout/ssl_redirect".
Go to components\com_virtuemart\themes\default\templates\pages\shop.cart.tml.php and go to around line 91 - $href = $sess->url( $_SERVER['PHP_SELF'].'?page=checkout.index&ssl_redirect=1', true); $href2 = $sess->url( $mm_action_url . "/index2.php?page=checkout.index&ssl_redirect=1", true); $class_att = 'class="checkout_link"'; $text = $VM_LANG->_('PHPSHOP_CHECKOUT_TITLE'); And change to
$href = $sess->url( $_SERVER['PHP_SELF'].'?page=checkout.index');// removed for router.php
$href2 = $sess->url( $mm_action_url . "/index2.php?page=checkout.index");//removed for router.php
$class_att = 'class="checkout_link"';
$text = $VM_LANG->_('PHPSHOP_CHECKOUT_TITLE');
This will only work if your not using SSL of course. |
| Last Updated on Saturday, 12 September 2009 14:52 Read : 3758 times |





























RewriteRule ^https://www.domainname.com/index.php?&redirected=1&option=com_virtuemart&Itemid=64 https://domainname.com/books/cart [R]
to my .htaccess file, it just matches the bad category url to my cart one.
I came here, looking for a solution to the redirectproblem. On the site I'm working on, the VM-checkout is redirecting to the categorypage. The suggestion as above doesn't seem to work... I'm using J.1.5.14 and VM.1.1.3, and the site is in legacymode (for now).
Please, can you give me some tips for solving this problem? Thanks!