News:

Looking for documentation? Take a look on our wiki

Main Menu

How to get ride of ugly SEF-URLs?

Started by uschmi, April 20, 2012, 15:38:12 PM

Previous topic - Next topic

incineratorbg

Quote from: AlexAkhremenko on April 20, 2012, 16:26:08 PM
Modify /components/com_virtuemart/router.php, line 130-135 from:

case 'productdetails';
$virtuemart_product_id = false;
if (isset($jmenu['virtuemart_product_id'][ $query['virtuemart_product_id'] ] ) ) {
$query['Itemid'] = $jmenu['virtuemart_product_id'][$query['virtuemart_product_id']];
} else {


to

case 'productdetails';
$virtuemart_product_id = false;
if (isset($jmenu['virtuemart_product_id'][ $query['virtuemart_product_id'] ] ) ) {
$query['Itemid'] = $jmenu['virtuemart_product_id'][$query['virtuemart_product_id']];
unset($query['virtuemart_product_id']);
unset($query['virtuemart_category_id']);
} else {


Simply added:
unset($query['virtuemart_product_id']);
unset($query['virtuemart_category_id']);



Hello,

I`ve added this lines to router.php but nothing happend on my site . http://atraktivna.com/component/virtuemart/97/14/tuniki/tunika-moli-detail?Itemid=0

Can you help, please?

jjk

#16
That fix is as well as another router fix is included in the latest 2.0.7g version, but as mentioned in another post already, it might be a problem with your GA e-sport template menu. Maybe you should describe your problem to Gavick support. SEF Urls work fine with other templates.

However, first check if your Joomla and VM2 SEF is enabled. At present your site looks like there is no SEF enabled at all.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Dokho

Excelent solution, I have SEF disable because the HTTPS solution give me for BanquetTables.pro only works without SEF (thanks a lot), so when I disabled this option, enabled the virtuemartRedirect and I added this code to router.php my site begin to work so good.

Excuse me about my english : ).