orangeslice Posted July 6, 2010 Share Posted July 6, 2010 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/productI get:http://www.url.com/what_ever_category_or_level/productI've got:- removed the id- removed the extensionDoes anyone know the solution for my problem?thankx!rishi Link to comment Share on other sites More sharing options...
erwu Posted July 24, 2010 Share Posted July 24, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now