Author Topic: 3rd level category creates a non sef URL ?  (Read 5210 times)

djcritch

  • Beginner
  • *
  • Posts: 27
3rd level category creates a non sef URL ?
« on: January 09, 2012, 00:08:52 am »
3rd level category creates a non sef URL ?

when seo settings are switched on third level categories give me a url like this: /cat-level-1/cat-level-2/2012-01-07-00-28-178

The Sef Alias cannot be over written at this level :-(

is there a way around this?

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10440
  • VirtueMart Version: 3+
Re: 3rd level category creates a non sef URL ?
« Reply #1 on: January 13, 2012, 18:32:34 pm »
backup first, then run these 2 sql

this will also do all categories, so dont do it unless u dont mind some cats changing

update jos_virtuemart_categories_en_gb set slug = category_name

THEN, you need to change the "space" to a "-"

update jos_virtuemart_categories_en_gb set slug = replace(slug,' ', '-');

djcritch

  • Beginner
  • *
  • Posts: 27
Re: 3rd level category creates a non sef URL ?
« Reply #2 on: January 17, 2012, 11:47:39 am »
Thanks for this fix!

I presume that i will need to run these lines of sql every time i add a new 3rd level category though?

is there a more permanent fix other then this?


PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10440
  • VirtueMart Version: 3+
Re: 3rd level category creates a non sef URL ?
« Reply #3 on: January 17, 2012, 13:38:30 pm »
no, u shouldnt,

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10545
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: 3rd level category creates a non sef URL ?
« Reply #4 on: January 20, 2012, 20:32:42 pm »
This is also redesigned in the upcoming patch.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/