Jump to content

friendly URL / incl category


Recommended Posts

Hi Guys,

First of all Prestashop is a very nice solution for my clients!
I'm a designer and this works great!

I'm working on a shop for my client, i can't get friendly url to do what i want:

i want:
http://www.url.com/category/subcategory/product

I get:
http://www.url.com/what_ever_category_or_level/product

I've got:
- removed the id
- removed the extension

Does anyone know the solution for my problem?

thankx!
rishi

Link to comment
Share on other sites

  • 3 weeks later...

Hm.. hard do say. It's not that important in link.

You can always write script which will modify "rewrite_url" and fill it with all parents. I decided to update "only" title tag :

http://www.copymedia.pl/50-gestetner



// 3 == language_id;


       $category = new Category(intval(Tools::getValue('id_category')), 3);
       $category_root = $category->getParentsCategories(3);

       $category_title = array();
       foreach( $category_root as $cat_r){
            $category_title[] = Category::hideCategoryPosition($cat_r['name']);
       }
       $categories_titles = array_reverse($category_title);

       $category_title = implode(" » ",  $categories_titles);


       $smarty->assign( "meta_title", $category_title );

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...