VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: panoss on September 15, 2016, 11:03:59 AM

Title: Problem with cart 's URL when SEF = YES
Post by: panoss on September 15, 2016, 11:03:59 AM
1. NO SEF (Joomla Global configuration> Search Engine Friendly URLs=NO).
I am at the cart and click 'Check out now' button and get transfered to 'Add/Edit billing address information' form.
The URL now is: index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT&Itemid=288&lang=en

Which is fine, because it has the Itemid, and so the module I use to apply some css to the cart (I use a module with Menu Assignment to 'Cart') works fine.

2. SEF = YES
I am at the cart and click 'Check out now' button and get transfered to 'Add/Edit billing address information' form.
The URL now is: : index.php/user/editaddresscartBT
The css in the module does not get applied. The 'Cart' menu item is not selected.

You can check it out live: http://pangou5.freehostia.com/idconcept
I have SEF = YES.

(you don't have to register, just click 'Carpets', 'add to Cart' one of the carpets, click 'Show Cart', choose 'Simple Mail', 'Cash on delivery', check the 'terms of Service' checkbox and click 'Check out Now')
Title: Re: Problem with cart 's URL when SEF = YES
Post by: GJC Web Design on September 15, 2016, 11:50:36 AM
This has been discussed so many times on here with cart and address urls

use an advanced module manager to do this or hidden menus etc
Title: Re: Problem with cart 's URL when SEF = YES
Post by: panoss on September 15, 2016, 12:28:52 PM
Quote from: GJC Web Design on September 15, 2016, 11:50:36 AM
use ... hidden menus etc
I 've already tried this (created a menu item with 'Menu Item Type' = 'User Edit Address' (that is VirtueMarts 's 'User Edit Address').
But the button 'Check out Now' still has the old link ( index.php/user/editaddresscartBT).
And not the new one. (I mean the menu item 's ink (index.php/user-edit-address)).
So it doesn't work.
Title: Re: Problem with cart 's URL when SEF = YES
Post by: panoss on September 15, 2016, 16:46:19 PM
I also tried the Advanced Module Manager, but it caused some modules not to function  ::).
I uninstalled it.

I 'm struggling with it for hours now, I can't believe I got stuck to such a thing...

Edit: I found out that in this page (index.php/user/editaddresscartBT) is displayed the content of 2 modules that are assigned to Home only. :o
Something very strange is happening...
Title: Re: Problem with cart 's URL when SEF = YES
Post by: VMTemplates.net on September 15, 2016, 18:38:22 PM
Set 'Use URL Rewriting' to YES
Using any FTP client rename htaccess.txt to .htaccess in your Joomla root
Title: Re: Problem with cart 's URL when SEF = YES
Post by: panoss on September 16, 2016, 13:34:49 PM
Quote from: VMTemplates.net on September 15, 2016, 18:38:22 PM
Set 'Use URL Rewriting' to YES
Using any FTP client rename htaccess.txt to .htaccess in your Joomla root
No this didn't help either.
I don't know, something 's very wrong with this URL ( index.php/user/editaddresscartBT)).
A menu like the one I put, should have done the job...
Title: Re: Problem with cart 's URL when SEF = YES
Post by: VMTemplates.net on September 16, 2016, 14:33:46 PM
Are you getting the same issue with the default Joomla template (protostar)?
Did you tried to flush cache?

Also, we always recommends to use Advanced Module Manager (already mentioned above in the thread by GJC Web Design) - management may look a little complicated however AMM provides very useful features which I'm sure will allow you to fully set up modules assignment.
https://www.regularlabs.com/extensions/advancedmodulemanager

Thanks,
Jason.
Title: Re: Problem with cart 's URL when SEF = YES
Post by: panoss on September 16, 2016, 14:56:47 PM
I 'm using protostar in my site, haven't changed to any other template.

I deleted (Joomla 's an browser 's) cache.

I did try the Advanced Module Manager but it caused me troubles! Some modules stopped working!
They (thank God) recovered when I uninstalled the Advanced Module Manager.
Title: Re: Problem with cart 's URL when SEF = YES
Post by: GJC Web Design on September 17, 2016, 10:39:41 AM
QuoteI did try the Advanced Module Manager but it caused me troubles! Some modules stopped working!
They (thank God) recovered when I uninstalled the Advanced Module Manager.

that can only be a wrong config.. check the docs of Adv MM