robo.balasko Posted November 13, 2011 Share Posted November 13, 2011 Hey guys! I'm working on an e-shop and experiencing a problem... I've already searched for it on Google, but it hasn't returned me any useful information, so I'm hoping that some of you will help me. As a newcomer to the PrestaShop e-commerce system, I rather chosen the editing of its default template than doing my own from scratch, however, when I want to edit the header.tpl file, e.g.: I delete the prestashop logo and those right-sided DIVs, that contain searchbar, etc., it always loads them from somewhere... What did I do: - edited the header.tpl file and deleted those divs / commented them out using (<!-- -->) - reloaded the website - and the results was, that nothing happened! When I checked the code in Firefox, Chrome and even IE, all those DIVs were there and no sign of the commenting HTML tags I put them in... If anybody knows what the heck is going on with this, please reply to this thread, thanks in advance! Link to comment Share on other sites More sharing options...
Dave L Posted November 13, 2011 Share Posted November 13, 2011 Whenever you edit a .tpl file you need to force compile in Preferences>performance before your changes are reflected. Link to comment Share on other sites More sharing options...
jhnstcks Posted November 13, 2011 Share Posted November 13, 2011 As a newcomer to the PrestaShop e-commerce system, I rather chosen the editing of its default template than doing my own from scratch, however, when I want to edit the header.tpl file, e.g.: I delete the prestashop logo and those right-sided DIVs, that contain searchbar, etc., it always loads them from somewhere... Not sure if you realise but Prestashop uses a module system, of which the search bar is a part of. These can be installed/uninstalled from the modules tab in your back-office. Removing the div for header_right and the hook_home code, will stop you adding any modules to the top of the page. As Dave has already mentioned you need to change the options in preferences>performance force compile true and cache false, otherwise cached versions of the theme will be used regardless of any changes you make to them. 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