dirkliesenfeld Posted January 6, 2015 Share Posted January 6, 2015 (edited) Hi guys, I changed a lot of stuff in the original Prestashop and somewhere on the way I must have made a mistake. I cannot display the regular product-list anymore. If I hit a category (like "dresses"), it will allways display the product-compare.tpl I can even delete the product-list.tpl in the defaulttheme folder and it will not make any difference. Anybody has an idea where to look? https://www.tantradvd.de Thnx. Edited January 6, 2015 by dirkliesenfeld (see edit history) Link to comment Share on other sites More sharing options...
fred-vinapresta Posted January 6, 2015 Share Posted January 6, 2015 Hi, in category.tpl, you should have this to include product from category {include file="./product-list.tpl" products=$products} If it doesn't appear with it, the problem come form product-list.tpl or controllers/front/categoryController.php Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 6, 2015 Share Posted January 6, 2015 Hi. The problem appears on every page that should display the product list.... Did you make change to the controller files or have worked you only on the template files? Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
dirkliesenfeld Posted January 6, 2015 Author Share Posted January 6, 2015 Hi. The problem appears on every page that should display the product list.... Did you make change to the controller files or have worked you only on the template files? Regards. Robin. The CartExpert Team I think I only touched the css and tpl. Link to comment Share on other sites More sharing options...
dirkliesenfeld Posted January 6, 2015 Author Share Posted January 6, 2015 Hi, in category.tpl, you should have this to include product from category {include file="./product-list.tpl" products=$products} If it doesn't appear with it, the problem come form product-list.tpl or controllers/front/categoryController.php Yep. It is there: {include file="./product-list.tpl" products=$products} Link to comment Share on other sites More sharing options...
dirkliesenfeld Posted January 6, 2015 Author Share Posted January 6, 2015 Any clues what I should do next are very much appreciated. I spend to much time working on the files, as to reset them to the original state and start all over again :-( Link to comment Share on other sites More sharing options...
dirkliesenfeld Posted January 6, 2015 Author Share Posted January 6, 2015 Hi, in category.tpl, you should have this to include product from category {include file="./product-list.tpl" products=$products} If it doesn't appear with it, the problem come form product-list.tpl or controllers/front/categoryController.php I took product-list.tpl and categoryController.php from the installation package and copied it over. Didn't change anything :-( Link to comment Share on other sites More sharing options...
fred-vinapresta Posted January 6, 2015 Share Posted January 6, 2015 can you join your files category.tpl and product-list.tpl? Link to comment Share on other sites More sharing options...
dirkliesenfeld Posted January 6, 2015 Author Share Posted January 6, 2015 Join? How can I do that? Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 6, 2015 Share Posted January 6, 2015 (edited) Attach category.tpl and new-products.tpl Regards.Robin.The CartExpert Team Edited January 6, 2015 by CartExpert.net (see edit history) Link to comment Share on other sites More sharing options...
dirkliesenfeld Posted January 6, 2015 Author Share Posted January 6, 2015 Ah - I can do that. But it propably won't help, since those are unchanged. I already restored those files with the original ones from the installation package. Should I still attach them? Plus I already restored (hopefully) every file I changed, but it doesn't change the bug. So I upped my altered files again. Could it be any setting from within the backoffice? Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 6, 2015 Share Posted January 6, 2015 Are you caching the templates? Is compilation turned on? Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
dirkliesenfeld Posted January 6, 2015 Author Share Posted January 6, 2015 I have tried both. Turned compilation on and off, turned caching on and off - the problem persists. If I would export the template into a zip file, set up the whole thing anew and imported the template back, would that work? Link to comment Share on other sites More sharing options...
dirkliesenfeld Posted January 6, 2015 Author Share Posted January 6, 2015 HEY!!!! That did it. The only option I hadn't tried before was switching of the caching on the filesystem. And that fixed it. Do you have any explanation for that behaviour?? Link to comment Share on other sites More sharing options...
dirkliesenfeld Posted January 6, 2015 Author Share Posted January 6, 2015 (edited) One last question: On the product-list in tile-view there is still the "add to cart"-button missing. There is only "in Stock" displayed. Any way to change that? Edited January 6, 2015 by dirkliesenfeld (see edit history) Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 6, 2015 Share Posted January 6, 2015 'HEY!!!! That did it. The only option I hadn't tried before was switching of the caching on the filesystem. And that fixed it. Do you have any explanation for that behaviour??' The explanation is, that is was cached The add to cart button is missing because it's hidden by CSS Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
dirkliesenfeld Posted January 6, 2015 Author Share Posted January 6, 2015 The add to cart button is missing because it's hidden by CSS Any way to unhide it? ;-) Btw. Thnx for your great help!! Really appreciate it! Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 6, 2015 Share Posted January 6, 2015 The CSS files are compressed, so can't tell you which line to edit. Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
dirkliesenfeld Posted January 6, 2015 Author Share Posted January 6, 2015 Ah - sorry. My bad. Disabled cache and compressing now... Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 6, 2015 Share Posted January 6, 2015 The buttons are back now. Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
dirkliesenfeld Posted January 6, 2015 Author Share Posted January 6, 2015 Ah, O.K., 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