[SOLVED] 1 image only for thumbnail picture

  • Posts: 192
  • Thank you received: 1
12 years 2 months ago #64391

Hi,

i would like to know if it's possible under your component to have 1 image used ONLY as thumbnail and not visible when user review the details of product ?
in fact i'm looking for having a different image for thumbnail and for product detail view (without viewing the thumbnail image)

thx.


What does not kill you, makes you stronger.
Last edit: 12 years 2 months ago by alain.roger.

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
12 years 2 months ago #64401

Hi,

You can do it by adding

array_shift($this->element->images)
at the begining of the file show_block_img (go in Display>views and type this name in the search field).
This modification will make the product page display the second image of your product instead of the first one.

Please Log in or Create an account to join the conversation.

  • Posts: 192
  • Thank you received: 1
12 years 2 months ago #64407

Hi Eliot,

but this doesn't make the thumbnail image hidden from the product page.
it makes only the 1st image not default in the "viewer", but it is still available for a click, no ?


What does not kill you, makes you stronger.

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
12 years 2 months ago #64408

My bad, I didn't explained well. This modification will display no image :)

Please Log in or Create an account to join the conversation.

  • Posts: 192
  • Thank you received: 1
12 years 2 months ago #64417

ok thx for feedback.

just one more question:
such modification means that thumbnail image MUST BE the 1st one saved into DB, am I right ?


What does not kill you, makes you stronger.

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13364
  • MODERATOR
12 years 2 months ago #64544

The images are ordered based on the "ordering" field of the images listing of the product. So you don't have to have them added in a special order as long as the ordering of the images is set properly in your products.

The following user(s) said Thank You: alain.roger

Please Log in or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum