VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: danielh84 on February 08, 2015, 16:55:08 PM

Title: Menu-alias in URI prevents VM from finding products for category
Post by: danielh84 on February 08, 2015, 16:55:08 PM
Hi all,

I'm puzzeled by something I've been trying to fix for a few hours now. I desperately need your help, since I'm out of angles. I'm on Joomla 3.3.6 & VM 3.0.4.

When adding a menu-item "Produktkatalog" alias: "produktkatalog" - which is a VM category layout menu type, showing the top level category - I get a menu-item which href is "/produktkatalog". This is exactly what you'd expect it to be. It shows a page with all categories. When following the route to a category which should be showing products, I see nothing. Below two paths which illustrate my problem.

"/produktkatalog/ztota/hands-werkh" doesn't give any products, while
"/component/virtuemart/ztota/hands-werkh" provides me all products I'd expect to see here. The alias from the menu-item screws things up for me and prevents products to be shown.

I've printed the current category from within virtuemart's router to rule out its absence. What are other strategies to solve this routing weirdness?
Thanks in advance!
Title: Re: Menu-alias in URI prevents VM from finding products for category
Post by: GJC Web Design on February 09, 2015, 01:04:49 AM
just building a J3/VM3 at the mo

what u describe I think is normal with SEF and url rewrite - VM homepage is the home menu - file ext enabled

top cat menu -> /flowers-for-delivery.html  i.e. catid = 0

this shows all top level cats all at the same level e.g. catid 1, 2, 3

the url directly to a cat  e.g. catid = 1 is simply /arrangements.html

a product in that cat is /arrangements/coronation-detail.html

so the catid 0 menu (/flowers-for-delivery.html) never comes into the url - I assume intended as the toplevel (cat0) is only a pseudo category

what if u make a parent cat produktkatalog (catid 1) and have all the other cats as children?
Title: Re: Menu-alias in URI prevents VM from finding products for category
Post by: erhabe on February 19, 2015, 01:36:47 AM
Hi

I have same problem.
I have category ATV...created a menu with same name.After this i created submenus from same category ATV but different manufacturers....ATV/GOES....ATV/ARCTIC-CAT.....ATV/CAN-AM and so on.When i click on submenus is showing the right category but when i click on a product shows the right product but other category.

Example....I click on a product from ATV/GOES category and instead to make url ATV/GOES/PRODUCT it make ATV/KAWASAKI/PRODUCT.

Is a solution to resolve this?

Thank you