nada1980 Posted March 20, 2011 Share Posted March 20, 2011 Hello everyone!For all those people who removed the Thickbox as I did,might be useful to remove Print and Enlarge buttons.In order to do this open the product.tpl file which is located in the prestashop theme folder that you are using.Search for the string "usefull links"You should find this code: > <!-- usefull links --> </pre> <ul> {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} {l s='Print'} {if $have_image && !$jqZoomEnabled} {l s='View full size'} {/if} to ignore this piece of code we simply have to change as follows: ><!-- usefull links </pre> <ul> {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} {l s='Print'} {if $have_image && !$jqZoomEnabled} {l s='View full size'} {/if} </ul> Hope it will help someone!Bye from Italy!!! 2 Link to comment Share on other sites More sharing options...
iown Posted April 8, 2011 Share Posted April 8, 2011 Thank you great tip Keith Link to comment Share on other sites More sharing options...
mecollectibles Posted May 20, 2011 Share Posted May 20, 2011 What if we wanted to comment out one part only tat is VIEW FULL SIZE. How to comment it out? Link to comment Share on other sites More sharing options...
mecollectibles Posted May 20, 2011 Share Posted May 20, 2011 I did as the following suggested but it did not work! Hello everyone!For all those people who removed the Thickbox as I did,might be useful to remove Print and Enlarge buttons.In order to do this open the product.tpl file which is located in the prestashop theme folder that you are using.Search for the string "usefull links"You should find this code:> <!-- usefull links --> </pre> <ul> {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} {l s='Print'} {if $have_image && !$jqZoomEnabled} {l s='View full size'} {/if} to ignore this piece of code we simply have to change as follows: ><!-- usefull links </pre> <ul> {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} {l s='Print'} {if $have_image && !$jqZoomEnabled} {l s='View full size'} {/if} </ul> Hope it will help someone!Bye from Italy!!! Link to comment Share on other sites More sharing options...
nada1980 Posted September 28, 2011 Author Share Posted September 28, 2011 Sorry, i've been so long away! You have to set the smarty force compile to true (in the smarty config inc file, in the config directory), then reset it to false. It works! 1 Link to comment Share on other sites More sharing options...
Reactivos Online Posted March 18, 2012 Share Posted March 18, 2012 It did worked for me but i got google plus1 and facebook like disappeared also. anyone knows why? Link to comment Share on other sites More sharing options...
reinoplantae Posted April 4, 2012 Share Posted April 4, 2012 in Produc.tpl, delete the underlined lines: <!-- usefull links--> <ul id="usefull_link_block"> {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} <li><a href="javascript:print();">{l s='Print'}</a><br class="clear" /></li> {if $have_image && !$jqZoomEnabled} <li><span id="view_full_size" class="span_link">{l s='View full size'}</span></li> </ul> Your code should look like this: <!-- usefull links--> <ul id="usefull_link_block"> {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} </ul> Link to comment Share on other sites More sharing options...
reinoplantae Posted April 4, 2012 Share Posted April 4, 2012 in Produc.tpl, delete the underlined lines: <!-- usefull links--> <ul id="usefull_link_block"> {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} <li><a href="javascript:print();">{l s='Print'}</a><br class="clear" /></li> {if $have_image && !$jqZoomEnabled} <li><span id="view_full_size" class="span_link">{l s='View full size'}</span></li> {/if} </ul> Your code should look like this: <!-- usefull links--> <ul id="usefull_link_block"> {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} </ul> Link to comment Share on other sites More sharing options...
it-sicily.com Posted May 15, 2012 Share Posted May 15, 2012 Hello, I've tried this solution, but it doesn't work! My prestashop version is 1.4.4.0 What should I do? Thanks Link to comment Share on other sites More sharing options...
subulica Posted October 2, 2012 Share Posted October 2, 2012 dont work for me PS 1.4.7.0 Link to comment Share on other sites More sharing options...
Norwegian Rat Posted October 2, 2012 Share Posted October 2, 2012 Here's a copy of what I have done: (uisng PS.1.4.9) <!-- usefull links--> <!-- <ul id="usefull_link_block"> {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} <li><a href="javascript:print();">{l s='Print'}</a><br class="clear" /></li> {if $have_image && !$jqZoomEnabled} <li><span id="view_full_size" class="span_link">{l s='View full size'}</span></li> {/if} </ul> --> You can try commenting out using this method as well: <!-- usefull links--> {* <ul id="usefull_link_block"> {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} <li><a href="javascript:print();">{l s='Print'}</a><br class="clear" /></li> {if $have_image && !$jqZoomEnabled} <li><span id="view_full_size" class="span_link">{l s='View full size'}</span></li> {/if} </ul> *} Guess you can add some styles and throw in the visibility:hidden function somewhere in too if it still wont work. (this will take up space on your site though) A final, but rather critical, solution is to delete the code. I would strongly advise you not to, because you might need this function at a later point Always remember to backup your file BEFORE doing modifications and trying alternative solutions when debugging. Saves you from a lot of work if something goes terrible wrong.... =) Good luck! Link to comment Share on other sites More sharing options...
subulica Posted October 3, 2012 Share Posted October 3, 2012 solved ... force compile after edit 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