News:

Looking for documentation? Take a look on our wiki

Main Menu

Checkout page / Cart page SEF URL problems

Started by Genius WebDesign, January 21, 2015, 21:31:16 PM

Previous topic - Next topic

Studio 42

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
if ( isset($jmenu['cart']) ) $query['Itemid'] = $jmenu['cart'];
else {
$segments[] = $helper->lang('cart') ;
$query['Itemid'] = $jmenu['virtuemart'];
}

in vm 3.0.6.2
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

Quote from: Studio 42 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
if ( isset($jmenu['cart']) ) $query['Itemid'] = $jmenu['cart'];
else {
$segments[] = $helper->lang('cart') ;
$query['Itemid'] = $jmenu['virtuemart'];
}

in vm 3.0.6.2
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

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

Quote from: HenrikS on April 18, 2015, 05:09:50 AM
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

Any idea how to get VM3 SEF and VM3 registration to work together?

Is there any plugin for this

HenrikS

#20
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

 :'(   Joomsef is in itself another type of nightmare

I steer  clear of these plugins
Regards
A

Joomla 4.4.5
php 8.1

HenrikS

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

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

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 4.4.5
php 8.1

Studio 42

#25
Quote from: Hutson 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

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

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

Hi,
Tyr first Adding a menu link to cart(hidden or not)
Quote from: 2cool 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

2cool

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

If you have a multilanguage shop, you have to set menu link to cart for each language