VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: z-analysts on June 07, 2013, 21:18:26 PM

Title: Bug with SEF URLs and Manufacturer details link
Post by: z-analysts on June 07, 2013, 21:18:26 PM
When I have SEF URLs enabled and create a JTree link to a menu item within a Joomla article the link has a /details appended to it. However the same link pointing to manufacturer details layout page on the menu is correct. Here are the two links:

JTree link - http://zclientdev.net/solfairtrade/our-artisans/aaan/details
Menu link - http://zclientdev.net/solfairtrade/our-artisans/aaan

To replicate the error, go to http://zclientdev.net/solfairtrade and click on the Artisans image. Then on the Artisans page, click on the first image in the first row. That will take you to the invalid Jtree link above. In contrast, click on AAAN from the Artisans menu dropdown and observe the URL. You can also tell from the content of both pages that one link is correct and the other is not.

Joomla 2.5.11
VM 2.0.20b
PHP 5.3.16

Please advise!

Title: Re: Bug with SEF URLs and Manufacturer details link
Post by: Milbo on June 07, 2013, 22:24:57 PM
Did you tried also the vm2.0.21c?
Title: Re: Bug with SEF URLs and Manufacturer details link
Post by: z-analysts on June 07, 2013, 22:41:58 PM
Yes, I just installed 2.0.21c and have the same problem.
Title: Re: Bug with SEF URLs and Manufacturer details link
Post by: jjk on June 07, 2013, 22:47:06 PM
At a first glance it looks to me like a wrong setting of 'Seo Suffix' in VM configuration and 'Adds Suffix to URL' in Joomla Global configuration. What is your current setting for the two?
Title: Re: Bug with SEF URLs and Manufacturer details link
Post by: z-analysts on June 07, 2013, 22:56:46 PM
The VM SEO suffix is "-detail" and the Joomla setting for Adds Suffix to URL is NO.
Title: Re: Bug with SEF URLs and Manufacturer details link
Post by: jjk on June 07, 2013, 23:28:37 PM
Ok, that is the correct setting. Maybe the Joomla jtree dosen't work properly with your roknavmenu or VirtueMart doesn't like the roknavmenu. The latter seems to use bootstrap and afaik bootstrap works with it's own javascript library. Firebug doesn't show me a conflict though.
Title: Re: Bug with SEF URLs and Manufacturer details link
Post by: z-analysts on June 07, 2013, 23:49:26 PM
What makes manufacturers different from categories and products which do work properly? I have another site using the same Gantry template (and roknavmenu)  with a plethora of category and product links and there are no problems.

Title: Re: Bug with SEF URLs and Manufacturer details link
Post by: z-analysts on June 17, 2013, 06:12:29 AM
Why do you think this is a roknavmenu problem? The roknavmenu link is correct. It's the Joomla jtree link that is wrong. Maybe the problem is with VirtueMart! As of VM version 2.0.21e the problem still persists.

Title: Re: Bug with SEF URLs and Manufacturer details link
Post by: jjk on June 17, 2013, 19:11:56 PM
In case you are using the VM manufacturers module to display your manufacturers view, does your problem go away if you add a hidden Joomla menu for your VM manufacturers?
Title: Re: Bug with SEF URLs and Manufacturer details link
Post by: z-analysts on June 17, 2013, 19:41:52 PM
I am not using the VM Manufacturers module. I created a standard Joomla article that contains links to already defined menu items.

Title: Re: Bug with SEF URLs and Manufacturer details link
Post by: jjk on June 17, 2013, 21:40:28 PM
I'm not shure if mixing a Joomla article with VirtueMart links can produce the desired urls. I think it would work much better for you if you would display the VirtueMart Manufacturers module in that module position instead.

It's available at Joomla Extensions > Module Manager > VM-Manufacturer. (You can copy that module and use the copy with your custom settings) In the 'Basic Options' you can select 'Image & Name' and in the 'Menu Assignment' section you can limit it to show on the desired page.
Title: Re: Bug with SEF URLs and Manufacturer details link
Post by: GuidoS on March 13, 2014, 14:06:14 PM
It's a long time ago but this issue is still active in virtuemart 2.0.26d. When you create a standard menu item to the manufacturer page it creates a sef url like http://<sitename>/<manufacturername>/details

When you click on the link you will be redirected to the overal page of manufacturers. I would suggest that I would go to the manufacturer page like when you click on a manufacturer in the manufacturer module. The reason why the link is different then the module is because the menu link is created with the url variable "layout=details". I think the problem is in the router of virtuemart.
Title: Re: Bug with SEF URLs and Manufacturer details link
Post by: jjk on March 15, 2014, 19:03:36 PM
If you add a standard (Joomla) menu item, you can choose either a 'manufacturer details 'or a 'manufacturer default' layout in the VirtueMart section. The 'default' displays all manufacturers - usually with a manufacturer name link and the manufacturer thumbnail (depending on how you did configure this). If you choose the 'details' layout, it shows the individual manufacturer page. If it doesn't, you probably forgot to select the individual manufacturer in the upper right corner after selecting the 'manufacturer details' layout.