Skip to main content

[SOLVED] 1 image only for thumbnail picture

More
14 years 1 month ago - 14 years 4 weeks ago #64391 by alain.roger
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: 14 years 4 weeks ago by alain.roger.

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

More
14 years 1 month ago #64401 by Eliot
Hi,

You can do it by adding
Code:
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.

More
14 years 1 month ago #64407 by alain.roger
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.

More
14 years 1 month ago #64408 by Eliot
My bad, I didn't explained well. This modification will display no image :)

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

More
14 years 1 month ago #64417 by alain.roger
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.

More
14 years 4 weeks ago #64544 by nicolas
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.217 seconds
Powered by Kunena Forum