Vilas Posted February 19, 2012 Share Posted February 19, 2012 Hello Friends, I like to know is it possible to remove "ON SALE" text from product page? I wish to keep image of On sale & want to remove text field only. Please find image for referance. Thanks Link to comment Share on other sites More sharing options...
hxd Posted February 19, 2012 Share Posted February 19, 2012 I'm not sure which theme that is but it should be similar for all themes. As I can see this is the product's page. You can remove the On sale text by commenting out some code in the product.tpl file for that theme. You can find the file in the root PrestaShop directory on your hosting account, in themes/name-of-theme. The code that you have to delete or comment out should look something like this: <span class="on_sale">{l s='On sale!'}</span> To comment it out simply put an exclamation mark and two hyphens after the first bracket (e.g. <!--span class...), and two hyphens before the last bracket (e.g. </span-->). Don't forget that when you make changes to template files you should also enable the Force compile option from the backend (Preferences tab>Performance sub-tab), so that you can see the change when you refresh the frontend. After you're done with the changes disable the force compile. Hope this helps. 2 Link to comment Share on other sites More sharing options...
Vilas Posted February 19, 2012 Author Share Posted February 19, 2012 Dear XHD, Simply great it worked for me. Thanks for kind support. It will be great if you helo me in my below thread. http://www.prestashop.com/forums/index.php?/topic/156383-field-discription-short-is-too-long-issue/page__fromsearch__1 Thanks Link to comment Share on other sites More sharing options...
vicmedia Posted November 7, 2012 Share Posted November 7, 2012 Hi. Just spotted this thread and attempted to do the same thing (to comment out the code that puts 'on sale' by products on my shop page). Bit of a newbie - it hasn't worked. Did I do something wrong? I edited the product.tpl file and uploaded it back to the remote server. I then turned off force compile. Nothing happened after I refreshed the live site, so I opened the file again and re-saved and uploaded, but still nothing's changed. I've now turned force compile off. Any help greatly appreciated! Link to comment Share on other sites More sharing options...
Vilas Posted November 8, 2012 Author Share Posted November 8, 2012 Hi Friend, Please enable force compile option for 2-3 minuites meantime access your site by deleting cookies and temporary files. I am sure it will resolve the issues. Or delete files in compile which is located under tools -- smarty -- compile. Dont forgot to set force compile to off. Thanks Link to comment Share on other sites More sharing options...
vicmedia Posted November 8, 2012 Share Posted November 8, 2012 Hi! Many thanks for the advice. It has worked to an extent, although I've realised I have to amend about three different files to change the wording on the front page, featured items page and main products page. I've found the code for two of them and will hopefully have it sorted soon. Thanks again! Link to comment Share on other sites More sharing options...
Premsig.com Posted March 13, 2013 Share Posted March 13, 2013 Perfect. Worked for me. 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