News:

Support the VirtueMart project and become a member

Main Menu

Rewrite problem

Started by erhabe, February 22, 2015, 23:18:33 PM

Previous topic - Next topic

erhabe

Hello

I have a category named CATEGORY-ONE.This category have multiple products from many manufacturers.
I make a menu vith category name so i have this url.....SITENAME/CATEGORY-NAME
I make submenus with all category manufacturers and the urls are .....SITENAM/CATEGORY-NAME/MANUFACTURER-NAME
When i click on a manufacturer menu it works fine and goes to that category manufacturer products list, but when i click a product the MANUFACTURER-NAME is not corect .
All links are like this....SITENAME/CATEGORY-NAME/MANUFACTURER1-NAME/PRODUCT-NAME
The issue is that manufacturer name is not changing and the urls are generated with a single manufacturer name for all products.

How can i solve this issue to generate all manufacturers links?


I believe the problem can be in sublayouts/product.php

$ItemidStr = '';
$Itemid = shopFunctionsF::getLastVisitedItemId();
if(!empty($Itemid)){
$ItemidStr = '&Itemid='.$Itemid;
}



Joomla version 3.3.6
Virtuemart version 3.0.6

Thank you

lucascatani