cocothecat Posted January 28, 2012 Share Posted January 28, 2012 is there a way to remove the main product image from the thumb nail list? I do not require the main image default product image to show in the the thumb nail category list Link to comment Share on other sites More sharing options...
cocothecat Posted January 29, 2012 Author Share Posted January 29, 2012 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 More sharing options...
cocothecat Posted January 29, 2012 Author Share Posted January 29, 2012 cant seem to solve it code wise however I found a messy work around by renaming my thumbnail image im able to show a different image than the main one 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