Champ4!* Posted November 3, 2011 Share Posted November 3, 2011 Hi, I'm editing a module called hcatmenu that came with a theme wich I bought. This module make a horizontal categories menu. I'm using PS 1.4.5.1. I'm trying to edit this module to get a different behavior, but I'm stuck on this. I edited a PHP file (hcatmenu.php) from the module but I never see reflected this change on my store. But, when I change something from the TPL file it's worked. I set Force Compile to No and Cache to No in the PS Panel, also I edited smarty.config.inc.php file and set complie_check to true (I read that this option is recommended), but nothing worked for me. I deleted /tools/smarty/compile files (excluding index.php) and nothing. This module is located in /themes/my_theme/modules/ folder, I don't know if that is important. Finally I deleted ALL CONTENT of hcatmenu.php file expecting an error from Smarty or PS, but nothing. My store is still working good without this module controller file. Please help! Link to comment Share on other sites More sharing options...
jhnstcks Posted November 3, 2011 Share Posted November 3, 2011 Force compile should be set to ON in preferences>performance. Link to comment Share on other sites More sharing options...
Champ4!* Posted November 3, 2011 Author Share Posted November 3, 2011 Force compile should be set to ON in preferences>performance. I know, but is better set complie_check = true in Smart config file. That way Smarty only will compile if changes were made. http://www.prestashopdocumentation.info/how-to-handle-prestashop-template-changes-without-loosing-performance-with-force-compile/ Link to comment Share on other sites More sharing options...
Champ4!* Posted November 11, 2011 Author Share Posted November 11, 2011 Problem solved. Problem was: when I imported the theme, PS also imported modules to /modules folder. So I have htcmenu module in /modules and /themes/<theme name>/modules. I was editing PHP file from /themes/<theme name>/modules/htcmenu, but isn't that file. PS process PHP file from /modules/htcmenu and TPL files from /themes/<theme name>/modules/htcmenu. In first step PS only process modules from /modules folder, but this modules redirect the 'view' file (TPL) to /themes/<theme name>/modules/htcmenu. 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