Author Topic: Checkout page / Cart page SEF URL problems  (Read 41162 times)

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4518
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Checkout page / Cart page SEF URL problems
« Reply #15 on: April 10, 2015, 10:46:14 am »
For max,
The virtuemart router is bugged, i have changed back to old way (virtuemart 2.6) for the cart and solved my problem.
the code is similar to the code Posted by: ceitean, i have give the same reply for another case in the forum.

in vm 2.6
Code: [Select]
if ( isset($jmenu['cart']) ) $query['Itemid'] = $jmenu['cart'];
else {
$segments[] = $helper->lang('cart') ;
$query['Itemid'] = $jmenu['virtuemart'];
}
in vm 3.0.6.2
Code: [Select]
if(!isset($query['Itemid'])){
if ( isset($jmenu['cart']) ) {
$query['Itemid'] = $jmenu['cart'];
} else if ( isset($jmenu['virtuemart']) ) {
$query['Itemid'] = $jmenu['virtuemart'];
}
}

I don't have found why someone have change this in  the 3.0.x version ? For the old version, you can always fix your problems on adding a hidden menu link, not for the the new version.

kgrzybowski

  • Beginner
  • *
  • Posts: 8
Re: Checkout page / Cart page SEF URL problems
« Reply #16 on: April 10, 2015, 12:05:51 pm »
For max,
The virtuemart router is bugged, i have changed back to old way (virtuemart 2.6) for the cart and solved my problem.
the code is similar to the code Posted by: ceitean, i have give the same reply for another case in the forum.

in vm 2.6
Code: [Select]
if ( isset($jmenu['cart']) ) $query['Itemid'] = $jmenu['cart'];
else {
$segments[] = $helper->lang('cart') ;
$query['Itemid'] = $jmenu['virtuemart'];
}
in vm 3.0.6.2
Code: [Select]
if(!isset($query['Itemid'])){
if ( isset($jmenu['cart']) ) {
$query['Itemid'] = $jmenu['cart'];
} else if ( isset($jmenu['virtuemart']) ) {
$query['Itemid'] = $jmenu['virtuemart'];
}
}

I don't have found why someone have change this in  the 3.0.x version ? For the old version, you can always fix your problems on adding a hidden menu link, not for the the new version.

Yes! This fixed my issue, thank you very much!

HenrikS

  • Beginner
  • *
  • Posts: 24
Re: Checkout page / Cart page SEF URL problems
« Reply #17 on: April 18, 2015, 05:09:50 am »
I have the same problem, if I enable SEF the registration is not working, if i disable it everything is ok but the urls are crap.

Is there any ETA on when this will be fixed in the router.php file since it has been a problem since VM2.?

I am running Joomla 3.4.1 and VM 3.0.7.4 on a fully updated server with cpanel.

And yes, aio-plugins are also fully updated.

The fix posted here does not work on my installation.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10144
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Checkout page / Cart page SEF URL problems
« Reply #18 on: April 19, 2015, 13:20:50 pm »
Is there any ETA on when this will be fixed in the router.php file since it has been a problem since VM2.?
No, there is a misunderstanding. Vm3 does not always overwrite it with the standard and also accepts the incoming itemId, which can create own problems and j3 reacts again different.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

HenrikS

  • Beginner
  • *
  • Posts: 24
Re: Checkout page / Cart page SEF URL problems
« Reply #19 on: April 19, 2015, 17:14:14 pm »
Any idea how to get VM3 SEF and VM3 registration to work together?

Is there any plugin for this

HenrikS

  • Beginner
  • *
  • Posts: 24
Re: Checkout page / Cart page SEF URL problems
« Reply #20 on: April 19, 2015, 22:43:47 pm »
Got it working 100% with JoomSEF and the Virtuemart plugin from them   :)

With that SEF component everything is working 100% ok ... Finally  ;)

And the router.php in VM3 does not need to be modified.

Just disable SEF in Virtuemart and let JoomSEF handle everything.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3491
  • VirtueMart Version: 3.8.9
Re: Checkout page / Cart page SEF URL problems
« Reply #21 on: April 20, 2015, 09:00:18 am »
 :'(   Joomsef is in itself another type of nightmare

I steer  clear of these plugins
Regards
A

Joomla 3.9.27
php 7.4

HenrikS

  • Beginner
  • *
  • Posts: 24
Re: Checkout page / Cart page SEF URL problems
« Reply #22 on: April 20, 2015, 14:21:23 pm »
I know it is, but it seems to be the only one that will work when you want SEF on your site with Virtuemart.

I tryed with many things and everytime registration dident work but with this plugon it does.

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4518
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Checkout page / Cart page SEF URL problems
« Reply #23 on: April 20, 2015, 20:40:55 pm »
What i don't understad, is why you cannot make virtuemart work on adding a new menu link to the cart.
Perhaps your site menu link are not conventional ?

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3491
  • VirtueMart Version: 3.8.9
Re: Checkout page / Cart page SEF URL problems
« Reply #24 on: April 20, 2015, 20:51:48 pm »
If you hide the menu link because you display the cart in a module position - the cart url varies based on the page you access it from
Regards
A

Joomla 3.9.27
php 7.4

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4518
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Checkout page / Cart page SEF URL problems
« Reply #25 on: April 22, 2015, 21:09:41 pm »
If you hide the menu link because you display the cart in a module position - the cart url varies based on the page you access it from

You have try my patch ? This work if you add a hidden menu link.
When i say a hidden menu, this mean adding a menulink, but not add the module for this menu.

I fixed 4 or 5 times this problem with this code and a hidden menu link

2cool

  • Jr. Member
  • **
  • Posts: 279
Re: Checkout page / Cart page SEF URL problems
« Reply #26 on: July 06, 2015, 11:51:49 am »
Hi, I'm having the same issues with cart.

/winkelwagen (=dutch for cart) is url from menu

/winkelwagen/cart (after adding products to cart)

How can ths be fixed? hidden menu or modify router??
Joomla! 3.4.3 and VirtueMart 3.0.9.4

Thanks and regards,
Pascal

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4518
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Checkout page / Cart page SEF URL problems
« Reply #27 on: July 06, 2015, 16:29:41 pm »
Hi,
Tyr first Adding a menu link to cart(hidden or not)
Hi, I'm having the same issues with cart.

/winkelwagen (=dutch for cart) is url from menu

/winkelwagen/cart (after adding products to cart)

How can ths be fixed? hidden menu or modify router??
Joomla! 3.4.3 and VirtueMart 3.0.9.4

Thanks and regards,
Pascal

2cool

  • Jr. Member
  • **
  • Posts: 279
Re: Checkout page / Cart page SEF URL problems
« Reply #28 on: July 06, 2015, 17:25:13 pm »
Hi already have a menu link to vm cart.
Using a top menu with user info and cart.

My guess it has something to do with language, is this related to the router issue?

Regards,
Pascal

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4518
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Checkout page / Cart page SEF URL problems
« Reply #29 on: July 06, 2015, 17:31:31 pm »
If you have a multilanguage shop, you have to set menu link to cart for each language