[SOLVED] 1 image only for thumbnail picture
- alain.roger
-
Topic Author
- Offline
Less
More
14 years 1 month ago - 14 years 4 weeks ago #64391
by alain.roger
What does not kill you, makes you stronger.
[SOLVED] 1 image only for thumbnail picture was created 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.
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.
14 years 1 month ago #64401
by Eliot
Replied by Eliot on topic Re: 1 image only for thumbnail picture
Hi,
You can do it by adding
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.
You can do it by adding
Code:
array_shift($this->element->images)
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.
- alain.roger
-
Topic Author
- Offline
14 years 1 month ago #64407
by alain.roger
What does not kill you, makes you stronger.
Replied by alain.roger on topic Re: 1 image only for thumbnail picture
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 ?
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.
14 years 1 month ago #64408
by Eliot
Replied by Eliot on topic Re: 1 image only for thumbnail picture
My bad, I didn't explained well. This modification will display no image
Please Log in or Create an account to join the conversation.
- alain.roger
-
Topic Author
- Offline
14 years 1 month ago #64417
by alain.roger
What does not kill you, makes you stronger.
Replied by alain.roger on topic Re: 1 image only for thumbnail picture
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 ?
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.
14 years 4 weeks ago #64544
by nicolas
Replied by nicolas on topic Re: 1 image only for thumbnail picture
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