knitting

Author Topic: How to get ride of ugly SEF-URLs?  (Read 3239 times)

incineratorbg

  • Beginner
  • *
  • Posts: 6
Re: How to get ride of ugly SEF-URLs?
« Reply #15 on: June 21, 2012, 02:34:26 AM »
Modify /components/com_virtuemart/router.php, line 130-135 from:

Code: [Select]
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

Code: [Select]
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:
Code: [Select]
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

  • Global Moderator
  • Hero Member
  • *
  • Posts: 2004
Re: How to get ride of ugly SEF-URLs?
« Reply #16 on: June 21, 2012, 04:54:39 AM »
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.

Dokho

  • Beginner
  • *
  • Posts: 17
Re: How to get ride of ugly SEF-URLs?
« Reply #17 on: June 25, 2012, 08:29:17 AM »
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 : ).

VirtueMart Forum

Re: How to get ride of ugly SEF-URLs?
« Reply #17 on: June 25, 2012, 08:29:17 AM »