VirtueMart 1.1 router.php returns to shop page - Joomla & VirtueMart Tips & How To's

Solution to Joomla inbuilt SEF Router for Virtuemart re-dirct to shop home page solution. shop/checkout/ssl_redirect

Home Joomla VirtueMart Tips VirtueMart 1.1 router.php returns to shop page

Sat

12

Sep

VirtueMart 1.1 router.php returns to shop page
  • Joomla 1.5
  • VirtueMart 1.1

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".


redirect to com_virtuemart router.php VirtueMart 1.1




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
 
VirtueMart
Your Cart is currently empty.

Latest Joomla & VirtueMart Tips

See all tips & examples



VirtueMart 1.1 router.php returns to shop page|Joomla & VirtueMart Tips & How To's



Solution to Joomla inbuilt SEF Router for Virtuemart re-dirct to shop home page solution. shop/checkout/ssl_redirect


checkout, php, url, index, page, href, class, router, ssl, virtuemart, sess, redirect, shop, joomla, server, self, true, action, text, title, removed, problem, att, phpshop, link, lang, using, work, course, change, themes, directing, component, click, button, apart, free, inbuilt, sef, works


guru

We use cookies to improve our website and your experience when using it. Cookies used for the essential operation of the site have already been set.
To find out more about the cookies we use and how to delete them, see our privacy policy.

I accept cookies from this site.