Jump to content

remove main image from thumbnails


cocothecat

Recommended Posts

Right so far ive found this

 

If I view the shop product page (right click show source) I can see this at the top which I assume controlls the thumb nails

 

// Images
var img_prod_dir = 'http://localhost/prestashop/img/p/';
var combinationImages = new Array();
  combinationImages[0] = new Array();
 combinationImages[0][0] = 0;

combinationImages[0] = new Array();
  combinationImages[0][0] = 24;
  combinationImages[0][1] = 26;
  combinationImages[0][2] = 27;
  combinationImages[0][3] = 29;
  combinationImages[0][4] = 30;
  combinationImages[0][5] = 32;

 

combinationImages[0][0] being the first main image I assume

 

However if I try to edit product.tp all I can see is the following :

 

// Images
var img_prod_dir = '{$img_prod_dir}';
var combinationImages = new Array();
{if isset($combinationImages)}
{foreach from=$combinationImages item='combination' key='combinationId' name='f_combinationImages'}
 combinationImages[{$combinationId}] = new Array();
 {foreach from=$combination item='image' name='f_combinationImage'}
  combinationImages[{$combinationId}][{$smarty.foreach.f_combinationImage.index}] = {$image.id_image|intval};
 {/foreach}
{/foreach}
{/if}
combinationImages[0] = new Array();
{if isset($images)}
{foreach from=$images item='image' name='f_defaultImages'}
 combinationImages[0][{$smarty.foreach.f_defaultImages.index}] = {$image.id_image};
{/foreach}
{/if}

 

Is there no way I can remove the first image or add a bit of code to tell it what to hide? Or even include the first bit of code manually?

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