Author Topic: mod_virtuemart_languages work on product without category tree  (Read 849 times)

DarkoF

  • Beginner
  • *
  • Posts: 3
  • Member
  • Skype Name: DarkoF
  • VirtueMart Version: VirtueMart 3.8.2 10325
Hi all
I need some help,
Joomla version, 3.9.18.
VirtueMart 3.8.2 10325

I have website with 3 languages but I will try to explain only with two  so will make it easier.

I want to use Language switcher module (mod_virtuemart_languages)  which came with payment membership and allow to switch languages between products.
I have long term (10years) experience with joomla and im quite sure all my multilanguage set up and menu is correctly. But im new to virtuemart.

(Website is not public so if you visit this links here will not work)

So my problem:

On level of categories everything working OK.
https://tuamv.com/sl/trgovina/siri
switch OK correctly to
https://tuamv.com/en/shop/cheeses
(Siri and cheeses are category)

On the product level
https://tuamv.com/en/shop/cheeses/test-produkt-en
language switcher switch to
https://tuamv.com/sl/trgovina/test-produkt-sl
(without category tree structure - /siri/-and fall to the main category)

My exspecting and wanted result  is
https://tuamv.com/en/shop/cheeses/testni-produkt-en
to
https://tuamv.com/sl/trgovina/siri/testni-produkt-sl
(with /siri/ category)

Hence if product have a parent and is the child product
https://tuamv.com/en/shop/cheeses/testni-produkt-en-child
Work as I expected  and redirect to
https://tuamv.com/sl/trgovina/siri/testni-produkt-sl-child

So how should I make that also parent product and product without children switching between languages with a category tree structure.?

Thank you all for answer in advance :)
There in no problem if you fall. Problem is if you don't get up

DarkoF

  • Beginner
  • *
  • Posts: 3
  • Member
  • Skype Name: DarkoF
  • VirtueMart Version: VirtueMart 3.8.2 10325
Re: mod_virtuemart_languages work on product without category tree
« Reply #1 on: May 23, 2020, 14:52:11 pm »
So I manage to make it work.

I will post here maybe somebody will find useful

In Configuration - SEO Settings
I enable:
Use Product and Category IDs   
and also
Use full category tree for product links, which I already have.

Now I get in URL also: category_name/cat_id/ product
URL is little longer but since this don't have much impact on SEO I can live with that.

Language switching now working as expecting.
There in no problem if you fall. Problem is if you don't get up

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4330
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3

DarkoF

  • Beginner
  • *
  • Posts: 3
  • Member
  • Skype Name: DarkoF
  • VirtueMart Version: VirtueMart 3.8.2 10325
Hi,
I try your module because I find if I use Product and Category IDs   in SEO settings
When I go frontpage to product and choose Manufacturer and see all manufacturer product - link don't work,  is like this:
mysite/manufacturer/0 
If I disable use Product and Category IDs   in SEO settings link work

When I install your Shop Language Switcher I get same results as with (mod_virtuemart_languages) as I describe above ewen if I enable Product and Category IDs   in SEO settings.

Every time I switch language I lose one category  in url
There in no problem if you fall. Problem is if you don't get up