News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

SEF links work fine in product module but not on any category page

Started by loppan, August 04, 2017, 12:13:45 PM

Previous topic - Next topic

loppan

Hello :).

Joomla 3.7.4 & VM 3.2.3

Cannot seem to figure this one out, truly grateful for any advice.

URL is http://www.dietrecords.org/crashdiet

(Heavily customised template but I get the same results with Protostar...)

This page is a VM category page, configured so that it shows 1 row of latest products on top.
The second row of products is the "virtuemart_product" module styled like the browse view.
Please see attached screenshot for clarification :).

The module shows SEF links just fine, such as :

http://www.dietrecords.org/crashdiet/all/here-to-stay-t-shirt-6
http://www.dietrecords.org/crashdiet/all/wanna-riot-t-shirt-1451

etc...

But whenever in browse-view / on a category page, the links are not SEF :

http://www.dietrecords.org/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=2245&virtuemart_category_id=141&Itemid=738
http://www.dietrecords.org/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=2231&virtuemart_category_id=141&Itemid=738

I cannot figure out why this is, but I'm wondering if it has anything to do with how my Joomla menu items are setup.

Actually, I could not get rid of the "Assign the component VirtueMart to a menu item"-notice, it appeared on all my VM pages. But SEF links in the module still worked, so I commented out a line in router.php to get rid of this... Because the VM component is assigned to several menu items already :) it's just that they're hidden... but this shouldn't matter? Or does it?

My joomla menu setup is a little unusual overall maybe... Actually, what I'm trying to achieve is a "3 stores in one" thing but with the same checkout page. I have achieved this (more or less...) by using several hidden menus and menu aliases. This is my site structure :

www.dietrecords.org <- "Start page" showing products in modules (the links work great).
www.dietrecords.org/crashdiet <- This is shop #1, using it's own template
www.dietrecords.org/sweetcreature <- This is shop #2, using it's own template
www.dietrecords.org/sweetcreature <- This is shop #3, using it's own template

All these menu items are hidden, most of the visible menu items are just aliases... I'm not sure if this is the best way to achieve this, but everything works, except for the URL issue described above :).

And still... even if I turn the main url "www.dietrecords.org" into a VM category page, and configure it to show some products there, SEF url's still don't work. Ahh it's confusing :)

SEF works in every other place in the site. Disabling overrides and enabling Protostar template does not help. I'm not using any other SEF extensions, only joomla's default SEF settings. Don't know where to troubleshoot next. Truly grateful for any guidance :)

Thanks

Best regards

Peter

loppan