Heskey Posted November 17, 2010 Share Posted November 17, 2010 Hi guys,First time poster to the forum.I'm trying to organise the categories on my prestashop into a specific order. I found another thread on this forum, and also this link (http://www.prestashop.com/wiki/Sorting_categories/) from the main website detailing how to organise categories by pre-fixing their name with '01. / 02.' etc...This works a treat, but whilst '01.' is hidden from the category name in the back office and the category name on the website, the '01.' is still displayed on the publically-viewable category name on the website category drop-down menu.How can you manually organise the order of prestashop categories without displaying your method?Thanks. Link to comment Share on other sites More sharing options...
rocky Posted November 26, 2010 Share Posted November 26, 2010 PrestaShop v1.4 lets you organise categories using arrows like you can with products. In PrestaShop v1.3, your only option is to find the code that is writing the category position and use code like the following to hide it: $name = Category::hideCategoryPosition($name); Link to comment Share on other sites More sharing options...
Emmanuel Paris Posted December 13, 2010 Share Posted December 13, 2010 Another easy solution is to use a regex-replace.For example, in a .tpl file, instead of {$product.category_default} use : {$product.category_default|regex_replace:"/^[0-9]+\./":" "} 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