web design, England, Britain, UK, belgium
 
Ulti Clocks content

VirtueMart 1.1 router.php returns to shop page

JOOMLABOTTOM sand 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

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

zat

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.


Add this page to your favorite Social Bookmarking websites
Digg! Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! Slashdot! Technorati! StumbleUpon! Spurl! Newsvine! Furl! Fark! Yahoo! Netvouz! Mister-Wong! RawSugar! Ma.gnolia! Squidoo! DZone! Swik!
Laatste aanpassing op zaterdag 12 september 2009 14:52 Read : 5864 times
 
Comments (5)
Thenks
5 zaterdag 14 november 2009 22:06
Veselin
Thenks for this!
Fix checkout redirect with OR without SSL
4 dinsdag 06 oktober 2009 16:17
Andrew
I have been struggling with this problem, and I developed a solution that at least works for me, and works both with and without SSL. I documented it on this forum. Hope it helps someone!
VM redirects to category page
3 maandag 28 september 2009 18:40
Aaron Carr
ok this is really ugly but i had no other choice, ive added

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.
VM redirects to category page
2 maandag 28 september 2009 18:12
Aaron Carr
Id just like to second that, im in exactly the same position, does anyone have any ideas
VM redirects to categorypage
1 zaterdag 19 september 2009 11:57
Lockerbie
First of all: thanks for pointing me to "Joomla inbuilt SEF Router for VirtueMart"! This one really works well, and is much easier as sh404sef for example.

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!

Add your comment

BoldItalicUnderlineStrikethroughSubscriptSuperscriptEmailImageHyperlinkOrdered listUnordered listQuoteCodeHyperlink to the Article by its id
Very HappySmileWinkSadSurprisedShockedConfusedCoolLaughingMadRazzEmbarrassedCrying or Very SadEvil or Very MadTwisted EvilRolling EyesExclamationQuestionIdeaArrowNeutralMr. GreenGeekUber Geek
Your name:
Titel:
Comment:

Latest Articles

Paypal Donation

If you use this module on your site please donate a small amount.
Any donation amount appreciated.

VM Live Product Search

Recommended Reading

For those interested in extending there knowledge of Joomla! & VirtueMart Packt Publishing has an excellent range of help & how to books.
Listed below are some I can recommend.
Simply click on the images to be taken directly to their web shop.

Learning Joomla! 1.5 Extension Development Learning Joomla! 1.5 Extension Development
by Joseph L. LeBlanc.
Read the review
Joomla! E-Commerce with VirtueMart Joomla! E-Commerce with VirtueMart
by Suhreed Sarkar.
Read the review
Joomla! Web Security Joomla! Web Security
by Tom Canavan.

Mastering Joomla! 1.5 Extension and Framework Development Mastering Joomla! 1.5 Extension and Framework Development
by James Kennard.

Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide
by Tessa Blakeley Silver.

JOOMLABOTTOM



VirtueMart 1.1 router.php returns to shop page



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