Ray UK Posted December 6, 2015 Share Posted December 6, 2015 I have found this function in tools.php public static function getProductCategoriesFull Im thinking thats the function I need to use, but how can I use it in the product.tpl ? Im making an inks site and 1 ink can be in 30 different categories, so I want to show the other categories as " This ink also works in the following printers ", plus the links will need to be clickable. Thanks Ray Link to comment Share on other sites More sharing options...
NemoPS Posted December 9, 2015 Share Posted December 9, 2015 You need to modify the ProductController.php file. Specifically you have to assign that in the initContent() method. Just assign it as variable, then use it with a foreach statement in product.tpl Link to comment Share on other sites More sharing options...
Ray UK Posted December 9, 2015 Author Share Posted December 9, 2015 Does the above function not do that job Nemo ? If not could you explain how to get the info for the categories. I just need the category name and the link to the category. btw. I purchasedyour stepbystep module last night for this same site. does the job excellent. Only 1 small problem, I hooked it to the top to show on all pages. It shows on the homepage too which is good, but it uses the block css instead of the top css on the homepage only. Ive got around it by copying the top css to hook css but this is just my fix. Cheers Link to comment Share on other sites More sharing options...
Ray UK Posted December 10, 2015 Author Share Posted December 10, 2015 Cant suss this out.. any pointers please nemo Or any one else Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted December 11, 2015 Share Posted December 11, 2015 I'm about to publish a tutorial on this (on monday) 1 Link to comment Share on other sites More sharing options...
Ray UK Posted December 15, 2015 Author Share Posted December 15, 2015 Hi Nemo, any sign of the tutorial yet ?Is it going on here or your page.Cheers in advance Link to comment Share on other sites More sharing options...
NemoPS Posted December 16, 2015 Share Posted December 16, 2015 Whoops, I forgot Let me get it up between today and tomorrow. Sorry I've been busy for the pre-Christmas week! Link to comment Share on other sites More sharing options...
Ray UK Posted December 16, 2015 Author Share Posted December 16, 2015 No problem.. your help is appreciated Link to comment Share on other sites More sharing options...
NemoPS Posted December 16, 2015 Share Posted December 16, 2015 Here you go http://nemops.com/prestashop-all-product-categories/#.VnFjaEo4Hmg 1 Link to comment Share on other sites More sharing options...
Ray UK Posted February 27, 2018 Author Share Posted February 27, 2018 Hey NemoPS, Using this tutorial can I change the image to the category thumbnail instead of the main image ? I cant work out how to do this. Presumably this code url('{$link->getCatImageLink($product_category.link_rewrite,$product_category.id_category)}') url('{$link->getCatImageLink($product_category.link_rewrite,$product_category.id_category)}') I guess I need to add -medium_default to the url somehow. Cheers Ray 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