Jump to content

How To Remove Thumbnails From Product Page (Prestashop 1.6)?


dalauris

Recommended Posts

Hello everybody!

 

Looking whole day for this answer, found it, but only for 1.4version  :unsure:  unfortunately, it does not work for 1.6.1.1 .

Could anyone help me with that problem, please? The visualized problem is in attachments. Like to be shown as "after" :)

post-1047035-0-13144000-1448463571_thumb.png

post-1047035-0-32266300-1448463580_thumb.png

Link to comment
Share on other sites

If you only have one photo then the thumbnails are not shown anyway. So I am a little confused really. Are yo saying you want more photos for the product but do not want to show them?

Link to comment
Share on other sites

Sorry, not clear :(

 

I know you do not want the thumbnails. But if you only have one photo there are no thumbnails - in the default theme. 

 

This is from my shop with a product that only has one photo : no thumbnails

post-246958-0-91525400-1448480874_thumb.jpg

 

So just delete the extra photos

 

Unless you are using a different theme? Have youpost-246958-0-91525400-1448480874_thumb.jpg bought a theme? If yes you should talk to the developer of the theme

Link to comment
Share on other sites

The theme is "default-bootstrap", nothing fancy.

 

You see the big problem is that I have many combinations for my product, if I try to combine all that attributes for my items it is gonna be over 3k combos! Man... That is damn work for only one item, not speaking that I have >30products or so. For e.g. "sizes" I try not include in combinations, but that leads showing all my pictures in the thumbnails. It is so confusing!

 

It other words: I need to delete the thumbnails block, showing only one big picture!

post-1047035-0-36249700-1448537504_thumb.png

Link to comment
Share on other sites

The theme is "default-bootstrap", nothing fancy.

 

You see the big problem is that I have many combinations for my product, if I try to combine all that attributes for my items it is gonna be over 3k combos! Man... That is damn work for only one item, not speaking that I have >30products or so. For e.g. "sizes" I try not include in combinations, but that leads showing all my pictures in the thumbnails. It is so confusing!

 

It other words: I need to delete the thumbnails block, showing only one big picture!

 

 

Now I understand :)

 

See the more info you give the better. Try SUM444's method and let us know if it works

Link to comment
Share on other sites

You should try to edit product.tpl


			{if isset($images) && count($images) > 0}
				<!-- thumbnails -->
				<div id="views_block" class="clearfix {if isset($images) && count($images) < 2}hidden{/if}">
					{if isset($images) && count($images) > 2}
						<span class="view_scroll_spacer">
							<a id="view_scroll_left" class="" title="{l s='Other views'}" href="javascript:{ldelim}{rdelim}">
								{l s='Previous'}
							</a>
						</span>
					{/if}
					<div id="thumbs_list">
						<ul id="thumbs_list_frame">
						{if isset($images)}
							{foreach from=$images item=image name=thumbnails}
								{assign var=imageIds value="`$product->id`-`$image.id_image`"}
								{if !empty($image.legend)}
									{assign var=imageTitle value=$image.legend|escape:'html':'UTF-8'}
								{else}
									{assign var=imageTitle value=$product->name|escape:'html':'UTF-8'}
								{/if}
								<li id="thumbnail_{$image.id_image}"{if $smarty.foreach.thumbnails.last} class="last"{/if}>
									<a{if $jqZoomEnabled && $have_image && !$content_only} href="javascript:void(0);" rel="{literal}[spam-filter]/literal}gallery: 'gal1', smallimage: '{$link->getImageLink($product->link_rewrite, $imageIds, 'large_default')|escape:'html':'UTF-8'}',largeimage: '{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')|escape:'html':'UTF-8'}'{literal[spam-filter]{/literal}"{else} href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')|escape:'html':'UTF-8'}"	data-fancybox-group="other-views" class="fancybox{if $image.id_image == $cover.id_image} shown{/if}"{/if} title="{$imageTitle}">
										<img class="img-responsive" id="thumb_{$image.id_image}" src="{$link->getImageLink($product->link_rewrite, $imageIds, 'cart_default')|escape:'html':'UTF-8'}" alt="{$imageTitle}" title="{$imageTitle}"{if isset($cartSize)} height="{$cartSize.height}" width="{$cartSize.width}"{/if} itemprop="image" />
									</a>
								</li>
							{/foreach}
						{/if}
						</ul>
					</div> <!-- end thumbs_list -->
					{if isset($images) && count($images) > 2}
						<a id="view_scroll_right" title="{l s='Other views'}" href="javascript:{ldelim}{rdelim}">
							{l s='Next'}
						</a>
					{/if}
				</div> <!-- end views-block -->
				<!-- end thumbnails -->
			{/if}
			{if isset($images) && count($images) > 1}
				<p class="resetimg clear no-print">
					<span id="wrapResetImages" style="display: none;">
						<a href="{$link->getProductLink($product)|escape:'html':'UTF-8'}" data-id="resetImages">
							<i class="icon-repeat"></i>
							{l s='Display all pictures'}
						</a>
					</span>
				</p>
			{/if}

this code you probably want to remove, hope it does not cause any JavaScript errors, but first make a backup.

 

Also nice that your site was mentioned here https://www.prestashop.com/blog/en/difference-product-attribute-product-feature/

Link to comment
Share on other sites

Actually this is not my site, I used it only to expose the problem. Do not get me wrong! ;)

 

Thanx, Razaro! but in my product.tpl - no such code lines, only these:

 

"
<!-- MODULE MailAlerts -->
 {if isset($email) AND $email}
  <p class="form-group">
   <input type="text" id="oos_customer_email" name="customer_email" size="20" value="{l s='[email protected]' mod='mailalerts'}" class="mailalerts_oos_email form-control" />
     </p>
    {/if}
 <a href="#" title="{l s='Notify me when available' mod='mailalerts'}" id="mailalert_link" rel="nofollow">{l s='Notify me when available' mod='mailalerts'}</a>
 <span id="oos_customer_email_result" style="display:none; display: block;"></span>
{strip}
{addJsDef oosHookJsCodeFunctions=array('oosHookJsCodeMailAlert')}
{addJsDef mailalerts_url_check=$link->getModuleLink('mailalerts', 'actions', ['process' => 'check'])}
{addJsDef mailalerts_url_add=$link->getModuleLink('mailalerts', 'actions', ['process' => 'add'])}

{addJsDefL name='mailalerts_placeholder'}{l s='[email protected]' mod='mailalerts' js=1}{/addJsDefL}
{addJsDefL name='mailalerts_registered'}{l s='Request notification registered' mod='mailalerts' js=1}{/addJsDefL}
{addJsDefL name='mailalerts_already'}{l s='You already have an alert for this product' mod='mailalerts' js=1}{/addJsDefL}
{addJsDefL name='mailalerts_invalid'}{l s='Your e-mail address is invalid' mod='mailalerts' js=1}{/addJsDefL}
{/strip}
<!-- END : MODULE MailAlerts -->

"

Edited by dalauris (see edit history)
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...