VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: jaumearagay on March 24, 2017, 13:03:52 PM

Title: Wrong URLs in spanish and french shop versions since VM 3.2.0. update
Post by: jaumearagay on March 24, 2017, 13:03:52 PM
I had set the menu items for the main page in every language to what I wanted ("tienda" in spanish and "boutique" in french) instead of "shop" and it worked properly.

Since the VM 3.2.0. update when I go to product categories page or product detail pages I get the "shop" particle instead of "tienda" or "boutique" in the URL having these URLs: "mysite.com/fr/boutique" BUT "mysite.com/fr/shop/cds" and "mysite.com/fr/shop/cds/my-first-cd". The same for main language, spanish:  "mysite.com/tienda" BUT  "mysite.com/shop/cds" and "mysite.com/shop/cds/my-first-cd". I have the latest Joomla version: J3.6.5.

I have purged the Joomla caches. Do I have to refresh anything else?
Title: Re: Wrong URLs in spanish and french shop versions since VM 3.2.0. update
Post by: Studio 42 on March 26, 2017, 14:06:22 PM
Hi,
try to use category as shop main page with no category and manufacturer selected.
Because main Virtuemart page is obselete, it's possible it work better.
Title: Re: Wrong URLs in spanish and french shop versions since VM 3.2.0. update
Post by: jaumearagay on March 29, 2017, 12:19:33 PM
Before the last update it worked properly...  :'(

Now doing as you say I get the right slug for the shop main page as I did after the update, but for the categories I get the category slug in the URL as "hanging" from the home page instead of showing the shop part of the slug:

I get "mysite.com/tienda" BUT  "mysite.com/cds" (it was "mysite.com/shop/cds"after the last update) but should be "mysite.com/tienda/cds"
and I get "mysite.com/cds/my-first-cd" (it was "mysite.com/shop/cds/my-first-cd" after the last update) but should be "mysite.com/tienda/cds/my-first-cd".

So, thank you, but your idea does not solve the issue. It changes it to a different one. It's better than before, but not fully solved.
Title: Re: Wrong URLs in spanish and french shop versions since VM 3.2.0. update
Post by: Studio 42 on March 30, 2017, 01:10:59 AM
This depend your menu too.
VM use Joomla menu for the first part and internal category tree after.
So if you need to display mysite.com/shop/cds and have set shop in one menu and cds in another menu
you get mysite.com/cds
SO you have to use Joomla menu tree :
shop
->cds

OR no Joomla menu links for cds part (using the category module for eg for links)

Note that now in VM you can have simplified category links or full links(including all parent cat in the link), perhaps your problem can be because before you used full links and now simplified category links ?
You have to check your VM config.
Title: Re: Wrong URLs in spanish and french shop versions since VM 3.2.0. update
Post by: Milbo on March 30, 2017, 22:24:00 PM
I am not really good in SEO, but I think your Urls are better.
Title: Re: Wrong URLs in spanish and french shop versions since VM 3.2.0. update
Post by: lindapowers on March 31, 2017, 06:57:19 AM
Quote from: jaumearagay on March 29, 2017, 12:19:33 PM
Before the last update it worked properly...  :'(

Now doing as you say I get the right slug for the shop main page as I did after the update, but for the categories I get the category slug in the URL as "hanging" from the home page instead of showing the shop part of the slug:

I get "mysite.com/tienda" BUT  "mysite.com/cds" (it was "mysite.com/shop/cds"after the last update) but should be "mysite.com/tienda/cds"
and I get "mysite.com/cds/my-first-cd" (it was "mysite.com/shop/cds/my-first-cd" after the last update) but should be "mysite.com/tienda/cds/my-first-cd".

So, thank you, but your idea does not solve the issue. It changes it to a different one. It's better than before, but not fully solved.

There is something interesting about this.

If you have a menu created to a concrete category and you access it via the category module the link displayed is without the main top level category item. (what he calls shop or tienda).

However if you don't have the menu item created it displays the full url including the "shop" (top level category item).

Still the long url with the "shop" menu item is accesible but if you type it the shorten url is set as canonical.

At least this is the effect for us.

I don't see any problem with it, actually I like it that it gets rid of the "shop" link for categories which is basicly useless but may not be desirable for all.
Title: Re: Wrong URLs in spanish and french shop versions since VM 3.2.0. update
Post by: jaumearagay on April 26, 2017, 16:12:10 PM
New twist in the plot!

I've linked the spanish and french versions of the menu items so when I move from one language to the other the page changes to the right one BUT when you are seeing a product detail page and change the language it links back to the main page in the other language. Is there a way to link the detail pages in the different languages or is this a new bug?
Title: Re: Wrong URLs in spanish and french shop versions since VM 3.2.0. update
Post by: Studio 42 on April 26, 2017, 16:43:38 PM
Current oNly using my module, language switching is working for products and Category.
See http://shop.st42.fr/en/products/multi-language-for-virtuemart.htm
Note that with my module, you don't have to associate any categories. It only have to exist and translated.