GJimenez Posted May 24, 2016 Share Posted May 24, 2016 Hi for all, I search a module like this image. Show all categories or subcategories in the category page. Any solution? Thanks in advance. Link to comment Share on other sites More sharing options...
tuk66 Posted May 24, 2016 Share Posted May 24, 2016 What about this module? It should be easy to hide images. http://addons.prestashop.com/en/16741-responsive-tabbed-categories-subcategories-on-homepage.html Link to comment Share on other sites More sharing options...
GJimenez Posted May 27, 2016 Author Share Posted May 27, 2016 Thanks for reply. The part of numbers? (numbers of products in this subcategory). I try to implement this but dont work =( I have found in google but none work in v1.6.1.5, Best regards. Link to comment Share on other sites More sharing options...
GJimenez Posted May 27, 2016 Author Share Posted May 27, 2016 I understand that this code copy to categoryController.php and category.tpl call this function? Sorry, but my level of PHP is bad. Thanks in advance again. Link to comment Share on other sites More sharing options...
GJimenez Posted May 30, 2016 Author Share Posted May 30, 2016 Good morning, I amb using the theme modules, and tthe option that show the subcategories is enabled, only image, name and description, but not number of products. Thanks. Link to comment Share on other sites More sharing options...
GJimenez Posted June 1, 2016 Author Share Posted June 1, 2016 Hi, I could solve this issue! 1. Editing the 651 line (getSubCategories() function) in /classes/Category.php file, add (SELECT count(*) FROM `'._DB_PREFIX_.'product` WHERE id_category_default=c.id_category) AS count 2. Add in 413 line of category.tpl of theme ({$subcategory.count}) Thanks! 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