danielsk Posted September 7, 2012 Share Posted September 7, 2012 Hello, I would like to use some Windows application for managing PrestaShop with import and export functions (including pictures). I found Store Manager for PrestaShop. It looks fine, but when I insert a new category using this application, browsers will not show it in the "Categories block" module. The new category is written to the database correctly. When I use Admin panel of PrestaShop, everything is OK. I am testing on empty installation of PrestaShop, v1.4.9.0 (last). I asked about this problem on support. They told me, that I have to disable the Smarty cache in Admin panel (Preferences - Performance) before editing categories and then enable it again. When I disable Smarty cache, everything works perfectly. Browser shows all new inserted categories. After enabling Smarty cache, browser doesn't show it more. When I add a new category using Admin panel, then browser shows also categories inserted using Store Manager and everything is OK. Do you have a similar experience? How can I solve this problem? Is it necessary to use some other application? Inserting values to database tables is not enough for PrestaShop? Thank you. Daniel Link to comment Share on other sites More sharing options...
shokinro Posted September 9, 2012 Share Posted September 9, 2012 Every new changes applied need to be re-compiled by smarty compiler. You need set Smarty to "Force Compile" and no Cache if you are changing anything the related to a theme file. Only turn Smarty "force compile" off and turn cache on when are ready to put for production without further changes. Changes on PHP file or database, should not be affected by Smarty. Link to comment Share on other sites More sharing options...
danielsk Posted September 10, 2012 Author Share Posted September 10, 2012 (edited) Hi shokinro, thank you for reply. I tried your soulution, but it is not working properly for me. My situation in Category block: 1. Installation of new empty PrestaShop v1.4.9.0 2. Inserted new category "Suits" using Admin panel Browser shows: > Suits 3. Smarty cache disabled and Force compile enabled 4. Inserted new category "Jackets" using Store manager Browser shows: > Suits > Jackets 5. Smarty cache enabled and Force compile disabled Browser shows: > Suits 6. When I click on "Suits" Browser shows: > Suits > Jackets 7. After reopening (not reloading) browser: Browser shows: > Suits Edited September 10, 2012 by danielsk (see edit history) Link to comment Share on other sites More sharing options...
danielsk Posted September 10, 2012 Author Share Posted September 10, 2012 SOLVED You may go to your store root directory/tools/smarty/cache and erase all files. These files are responsible for a category layout. After you refresh your website from web browser, these files will be regenerated with a new category list. So you may clear cache files after you have added new categories. Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 10, 2012 Share Posted September 10, 2012 Hello Danielsk, Thank you for the message. I'm happy that you found the solution and posted it on the Forum, this could help other merchants! I will go ahead and mark this thread as SOLVED. Thank you for choosing PrestaShop! Link to comment Share on other sites More sharing options...
shokinro Posted September 10, 2012 Share Posted September 10, 2012 Hi Danielsk I am glad you resolved your issue. And thanks for sharing the information. You may go to your store root directory/tools/smarty/cache and erase all files. These files are responsible for a category layout. After you refresh your website from web browser, these files will be regenerated with a new category list. Yes, manually remove cache files is also a way to do. But usually if you set smarty to "Force Compile", it will regenerate new data to replace cache. Anyway, it is good to know. Link to comment Share on other sites More sharing options...
Recommended Posts