VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: serge-web54 on October 03, 2015, 08:47:10 AM

Title: URLS to the products of a supplier load description of a category
Post by: serge-web54 on October 03, 2015, 08:47:10 AM
Hello, due to a migration, I have the categories that have the same id that some suppliers.
i call with sh404 the products from the supplier via: index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=42 for example, except that it goes well fetch me the products of the supplier 42 but also displays the description of the category 42.
How can I do to have the display in category of supplier products without the description of the category with the same id?
Title: Re: URLS to the products of a supplier load description of a category
Post by: GJC Web Design on October 03, 2015, 13:28:33 PM
IMHO sh404sef is totally un-necessary for any recent Joomla/VM

but as ->

http://forum.virtuemart.net/index.php?topic=79799.0

http://forum.virtuemart.net/index.php?topic=104795.0
Title: Re: URLS to the products of a producer load description of a category
Post by: serge-web54 on October 04, 2015, 08:39:03 AM


ok,
Thank you to remain me the rules and that my english seems poor ( I do not have the chance to be born in english speaking country ;) ) :
my site is there :
http://cordes.fr/nouveau (vm3.0.10 J3.4.4)
and for instance when you choose : http://www.cordes.fr/nouveau/cordes-judge-fredd.htm you could see judge fredd products with a description of the category with the same id.(instrument traditionnels)

I use sh404 to rewrite the urls and the titles, and also because i want a direct link to products of a manufacturer.
If i disable sh404 i have the same problems.

Thanks for helping
Serge

Title: Re: URLS to the products of a supplier load description of a category
Post by: jjk on October 04, 2015, 20:57:43 PM
Looks to me like you are using category menu links in your left menu which you labeled with manufacturer names. In this case I suppose you would have to remove the category description. I doubt that the identical id numbers have any relevance, because in the database tables they have different names. One is virtuemart_category_id and the other one is virtuemart_manufacturer_id. So you can have for example manufacturer 1,2,3,4,5,... and category  1.2.3.4.5,...

Another option would be to use a menu with manufacturer names where the menu item types are set to 'Manufacturer_details_layout'.
Title: Re: URLS to the products of a supplier load description of a category
Post by: serge-web54 on October 05, 2015, 11:00:48 AM
well, if i disable sh404 and go to index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=57 it works fine
if i enable sh404 and lead my url to this one , it display category 57 description

it makes me fool ::
Title: Re: URLS to the products of a supplier load description of a category
Post by: GJC Web Design on October 05, 2015, 11:29:11 AM
but if u name your categories the same as your manufacturers what do u expect to happen when a SEF component constructs its url from the title names?

name them slightly differently... e.g manu as Marque Cordes Judge  Fredd and make sure you update the alias as well