VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Security (https) / Performance / SEO/ SEF issues VM 1.1 => Topic started by: sebtis on August 12, 2011, 15:05:21 pm

Title: Error 310 (net::ERR_TOO_MANY_REDIRECTS) When checking out
Post by: sebtis on August 12, 2011, 15:05:21 pm
Hy all,

When checking out on virtuemart V1.1.6 and Joomla 1.5.22 I got the following error message : Error 310 (net::ERR_TOO_MANY_REDIRECTS)

I used router.php for url rewriting is it the problem.

Thanks by advance for your help.

Website : http://www.chamita.ma

Thanks,

Smael
Title: Re: Error 310 (net::ERR_TOO_MANY_REDIRECTS) When checking out
Post by: lekreator on September 10, 2012, 19:29:54 pm
The problem is SSL Redirect, to fix this:

Open file pagesshop.cart.tpl.php in

"components\com_virtuemart\themes\YOUR TAMPLATE\templates\pagesshop.cart.tpl.php"

change lines 67 & 68

       $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);

to

       $href = $sess->url( $_SERVER['PHP_SELF'].'?page=checkout.index', true);
         $href2 = $sess->url( $mm_action_url . "/index2.php?page=checkout.index", true);

Now save the file and upload it again and your problem will be solved!

Brazilian users, we also love the virtuemart :D