Author Topic: router error?  (Read 802 times)

FusionNetwork

  • Beginner
  • *
  • Posts: 21
    • FusionNetwork
  • VirtueMart Version: 3.8.6
router error?
« on: April 19, 2021, 17:18:43 pm »
Hi all,

I am trying to use Virtuemart Products module to display Products from same category on the products details page. I used it on other sites and it works if you select yes for category filtering and leave category empty. It gets the category id from url.

Initially worked, but I unchecked the "Use full category tree for product links" from the Virtuemart config, SEO tab to see if it gets the category, and no, it doesn't get it so I checked back "Use full category tree for product links" but now even with that option checked it does not get the category on product details page. I don't know what to do. I checked and compared #_virtuemart_configs table with one from a working site (with same settings) and everything looks ok.

I found an old post (https://forum.virtuemart.net/index.php?topic=133744.0) but the code in the router has changed and it seems it has been updated for that issue...

If I disable Joomla! SEF, the category is set correctly in the product details view so I think is a Virtuemart router error.


Joomla 3.9.26
VirtueMart 3.8.8 10472
php 7.4

Thanks
Regards
Cosmin

Sandruk1

  • Beginner
  • *
  • Posts: 13
  • A beginner
Re: router error?
« Reply #1 on: April 19, 2021, 19:02:08 pm »

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4455
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: router error?
« Reply #2 on: April 20, 2021, 09:06:59 am »
Do not forget to clear the Joomla cache.

FusionNetwork

  • Beginner
  • *
  • Posts: 21
    • FusionNetwork
  • VirtueMart Version: 3.8.6
Re: router error?
« Reply #3 on: April 20, 2021, 16:01:41 pm »
Hi,

Thanks for help.

Sandruk1's post helped.

I think it has something to do with SEO options from Virtuemart config. I have websites where I'm using products module to display products from the same category on product details page and all are working with latest Joomla and Virtuemart, but I didn't mess with Virtuemart SEO settings.

If you check "Use Product and Category IDs" and uncheck "Use full category tree for product links" and then revert back, the category isn't set anymore even if "Use full category tree for product links" is checked.

I'll try in a fresh Virtuemart install and come back.

Thanks both of you for your help.

Regards
Cosmin