mozack Posted September 30, 2010 Share Posted September 30, 2010 Hi to all,I was forced to insert number in category name (ex.: 01.Accessories), to place the categories by custom order. Now, how can i print the category name without the number, using {$category_name} variable in tpl files?Hope you can help me.RegardsMozack Link to comment Share on other sites More sharing options...
keutche Posted September 30, 2010 Share Posted September 30, 2010 Hi,there is a fucntion in Category class file that can do what you looking for.Best regards,Keutche Link to comment Share on other sites More sharing options...
mozack Posted September 30, 2010 Author Share Posted September 30, 2010 Ok, thanks.Can you tell me where? I was looking for before post but found nothing...RegardsMozack Link to comment Share on other sites More sharing options...
keutche Posted September 30, 2010 Share Posted September 30, 2010 Hihere is the function :static public function hideCategoryPosition($name) { return preg_replace('/^[0-9]+\./', '', $name); }best reagrds,Keutche Link to comment Share on other sites More sharing options...
mozack Posted September 30, 2010 Author Share Posted September 30, 2010 Ok,That is exactly what i have in my Category class. But it prints the category name with number if i choose {category_name}Well, every help will be welcomeRegardsMozack Link to comment Share on other sites More sharing options...
keutche Posted September 30, 2010 Share Posted September 30, 2010 HIwhich ersion of prestashop did you install ?is that the site url : http://www.biquinimodapraia.com.br/ ?Because the site seems to be down.best regards,keutche Link to comment Share on other sites More sharing options...
mozack Posted September 30, 2010 Author Share Posted September 30, 2010 yes is that one. I check it now and it is up and working...RegardsMozack Link to comment Share on other sites More sharing options...
Recommended Posts