Post by ajojavi » Tue Dec 03, 2013 12:54 am

Ok, here is the question.

I have 20 images in a product, but I only want to see the default images and three small images below. If you click a images the viewer es opened so you can see the 20, but in the product display is better without several images...

You can see an example here http://fluid-house.com/ocart/index.php? ... ct_id=1099
The description is below, too far... it is not very cool...

Someone could help me?

Thanks

New member

Posts

Joined
Thu Oct 24, 2013 8:51 pm
Location - Spain

Post by billynoah » Tue Dec 03, 2013 1:35 am

if you don't want all those images, can't you just remove all but three of the images from the product?

Image


User avatar
Active Member

Posts

Joined
Tue Jan 15, 2013 12:46 pm

Post by ajojavi » Tue Dec 03, 2013 1:55 am

The problem is that I want when you click the images and the viewer opens, you can see the 20 images, so I have to add in the product settings. On the other hand I want that in the product page in the e-shop don´t appear the 20 only three or less.

For me is very important that the description appears just under the main image and not at the end, nobody is going to see the description.

Sorry about my English I do my best,

thanks,

New member

Posts

Joined
Thu Oct 24, 2013 8:51 pm
Location - Spain

Post by butte » Tue Dec 03, 2013 1:56 am

Version? Theme is default. You say 20 images but in Firefox 23.0.1 I see ONE small image that is about 2.5x the little ones under it, where I see ca. 239 (quickly counted, 70 rows of 3, +1 of 2) little images and they appear to be thumbnail triplets as stills, but in the "viewer" I seem able to review all of them (or at the very least 1/3 of them, 71+, at one size). What extensions are running? What you have is not normal in any version of stock OC.

You should ask the author of whatever extensions you have that fiddle with image displays.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by ajojavi » Tue Dec 03, 2013 2:17 am

Ok, Sorry, my fault... In the example there are 240 images, I talk about 20 for instance, but if you see this page maybe you could understand.
I am working with 100, 200 or 300 images. The viewer works perfect.
My first option is to reduce the little images, but I prefer use 2 rows of 100 but I think this is not possible. Now I will try...

New member

Posts

Joined
Thu Oct 24, 2013 8:51 pm
Location - Spain

Post by billynoah » Tue Dec 03, 2013 2:20 am

are you trying to keep all the images for display in lightbox, but not display the thumbnails?

if you have 2 rows of 100 images that will take up quite a bit of space.. or did you mean 100px?

Image


User avatar
Active Member

Posts

Joined
Tue Jan 15, 2013 12:46 pm

Post by ajojavi » Tue Dec 03, 2013 2:37 am

Yes, exactly. My Theme is "default"
Ok, Now I resized the images 1 x 1 px so you can see like 200 spots... (the system doesn´t allow 0x0px)
If I can´t hide this little images, or reorganize them. I will let 1x1 , but It is a pity becuse in the product where I just have 5 images the previous settings were perfect...

Thanks for your help, I really appreciate them.

New member

Posts

Joined
Thu Oct 24, 2013 8:51 pm
Location - Spain

Post by butte » Tue Dec 03, 2013 2:43 am

You may want to rethink how you go at that. During the quick count that did hit 1+239, I was impressed that the thumbnails are too tiny and not appropriately arranged. My reaction is that their being there is effectively useless. ESPECIALLY if you are selling images, keep to the best ones and make them legible -- keep the rest to yourself. The largest (1 above the 239) is significantly too small, and the viewer is only marginally large enough, for the sake of selling images. Have you ever suffered somebody's vacation slides? Same deal, every bloody motor-driven shot on a roll or on a card does not need to be shown or seen. You'll need to accept that what is counterproductive is not worth presenting, and you'll need to avoid marrying every image you shot. (I work with high resolution photographic and other imagery, and have for many years.)

You still haven't given version. That the theme is default appears twice.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by ajojavi » Tue Dec 03, 2013 2:51 am

Yes I know... It is true, but It is necessary. The photographer go to the beach, take 100 photos. Then I create 101 products, the first one is the catalog (where everybody can see all the photos and find the proper photo) and the next step is going to the other 100 products and buy the one you really like. If I don´t create this "product catalog" is impossible for a surfer to find himself. It is like when you go to a "roller coaster" in a park, and when you go out you can find your photo and buy it.

New member

Posts

Joined
Thu Oct 24, 2013 8:51 pm
Location - Spain

Post by billynoah » Tue Dec 03, 2013 2:58 am

ajojavi wrote:Yes, exactly. My Theme is "default"
Ok, Now I resized the images 1 x 1 px so you can see like 200 spots... (the system doesn´t allow 0x0px)
If I can´t hide this little images, or reorganize them. I will let 1x1 , but It is a pity becuse in the product where I just have 5 images the previous settings were perfect...

Thanks for your help, I really appreciate them.
if you don't want the thumbs to display you could add:

style="display:none"

to the the <a> tag in line 18 of your product.tpl.

if you want to display only a certain amount of thumbs (like, 5 for instance) but hide the others you could mod your php loop like this:

Code: Select all

        <?php foreach ($images as $key=>$image) { ?>
        <a href="<?php echo $image['popup']; ?>" <?php if ($key > 4) {echo 'style="display:none"';} ?> title="<?php echo $heading_title; ?>" class="colorbox"><img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a>
        <?php } ?>
Last edited by billynoah on Tue Dec 03, 2013 5:04 am, edited 1 time in total.

Image


User avatar
Active Member

Posts

Joined
Tue Jan 15, 2013 12:46 pm

Post by ajojavi » Tue Dec 03, 2013 3:10 am

Sorry, I am not sure understand this. (I don´t speak english very well and sometime people have to speak to me like if I was a child ;D
1st option: hide the thumbs.
2nd option: limited thumbs.

The code is the fisrt or the second option. And what is the file I have to change?

New member

Posts

Joined
Thu Oct 24, 2013 8:51 pm
Location - Spain

Post by billynoah » Tue Dec 03, 2013 3:15 am

adding style="display:none" as i mentioned would hide the thumbs.

The code would be for limiting the amount of thumbs. You need to mod around line 17 - 19 (depending on your OC version) of the product.tpl file.

Image


User avatar
Active Member

Posts

Joined
Tue Jan 15, 2013 12:46 pm

Post by ajojavi » Tue Dec 03, 2013 3:59 am

Ok, I will check tomorrow.. here in Spain is near 9 Pm, 12 hours in front of my computer.. my brain is going to blow out..
Thanks for your advices.

New member

Posts

Joined
Thu Oct 24, 2013 8:51 pm
Location - Spain

Post by stokeyblokey » Tue Dec 03, 2013 4:58 am

@billynoah that code to limit to 5 visible thumbs is brilliant, works perfectly on OC1.5.6 ;D

@ajojavi to save you struggling I have made the code change to the product.tpl files for both 1.5.6 and 1.5.5.1 (you never told us which version you are using but I can see now it is 1.5.6 as you have a link to recurring payments in your account page...) and I attach the files here for you.

First use FTP and go to /catalog/view/theme/default/template/product/ folder - rename the product.tpl to ORIGINALproduct.tpl just in case

Then upload the modified product.tpl to the same place and your thumbs should be limited to 5 (I would recommend changing that to 6 so they are in 2 rows of 3 and evenly distributed - if you want to do that just edit the new product.tpl in notepad++ and change ($key > 4) to ($key > 5), save the file and upload it).

Hope that helps :)

OC1.5.6 version, limited to 5 thumbs

OC1.5.5.1 version, limited to 5 thumbs

EDIT: Made this into a vQmod for 1.5.6 and 1.5.5.1, file attached for everyone and thanks to billynoah again for a great code snippet +1

Attachments

vQmod version for OC1.5.6 - limit 6


Stokey


User avatar
Active Member

Posts

Joined
Sat Aug 31, 2013 10:19 pm
Who is online

Users browsing this forum: No registered users and 58 guests