Jump to content

[SOLVED] Removing Print and Enlarge buttons below the product image


Recommended Posts

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!!!

  • Like 2
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

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

  • 4 months later...
  • 5 months later...
  • 3 weeks later...

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

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

  • 1 month later...
  • 4 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...