stanleyek18 Posted October 7, 2016 Share Posted October 7, 2016 Hello! I guess older solutions for that doesn't work for newest presta, so I came here for help. Currently I am displaying Default Category with link do it with this code (on product.tpl) <a href="{$link->getCategoryLink($product->id_category_default)}">{$product->category}</a> But this shows me "raw" category name and I need it to be full title. <a href="{$link->getCategoryLink($product->id_category_default)}">{$category->name}</a> Shows full category name but not default category. Thanks for your help! 1 Link to comment Share on other sites More sharing options...
2grosiek7 Posted October 7, 2016 Share Posted October 7, 2016 (edited) Solutions of vekia (mypresta) works in 1.6, the same as in 1.5. It was here wrote, just use search engine. But, the same, it return default category, and name will be the same as you see in breadcrumb. In otherwise, when you want to rewrite meta title of category, which you written by yourself in BO, to product meta title, probably it won't be possible. Edited October 7, 2016 by 2grosiek7 (see edit history) Link to comment Share on other sites More sharing options...
stanleyek18 Posted October 7, 2016 Author Share Posted October 7, 2016 (edited) I don't get it where you have found it. https://mypresta.eu/en/art/developer/display-all-product-categories-on-product-page.html He only shows how to made categories list on product page, nothing about default category. Name from breadcrumb is perfectly ok. Thanks! Edited October 7, 2016 by stanleyek18 (see edit history) 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