Styling/Dimensions of Product Images on Shop Product Pages

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Jun 05, 2013 11:45 am
Reply with quote
Report this post
Hi.

I use this template with J2.5 and Virtuemart 2.
I have a small layout problem on the VM2 product pages that I believe (although I don't know for certain) started occurring after I updated Virtuemart 2 (I now use version 2.0.20b).

For each product I have assigned multiple product images in VM2. The main/first product image loads fine, but the styling and dimensions of the additional ones shown as thumbnails has changed for the worse (they are now half the size than they were originally and their border has disappeared). They do not even display at all on Internet Explorer.

Please can you tell me how I can fix/correct this?

Thanks
User avatar
Gold Boarder

GK User
Wed Jun 05, 2013 1:10 pm
Reply with quote
Report this post
Could You please enable a default template, and check if the problem exist also within it? If so, it would be mostly VirtueMart's plugin problem. If problem disappears, please write me back and Ill check more carefully what might be wrong.
User avatar
Moderator

GK User
Wed Jun 05, 2013 2:24 pm
Reply with quote
Report this post
Thanks for your reply Cyberek.

Do I try a default template by going to Template Manager and assigning another template as the default?

Thx
User avatar
Gold Boarder

GK User
Wed Jun 05, 2013 4:09 pm
Reply with quote
Report this post
Exactly this is the way.
Then reload page and check if problem still occurs.
User avatar
Moderator

GK User
Thu Jun 06, 2013 12:30 pm
Reply with quote
Report this post
Cyberek, when I switch templates all the product images are displayed at the same size (i.e. no thumbnails).

So does this mean it is a template issue rather than a VM2 problem?
User avatar
Gold Boarder

GK User
Thu Jun 06, 2013 3:00 pm
Reply with quote
Report this post
Please send me a PM with:
1. URL to your website
2. login and password of user with admin/super-admin privileges (please create one for me)
3. link to this thread

Also please include a sample link to a product, where I can see how the things work when changing the template.
If it is a bug in our template, ill create a quick fix for You or send the case to developers.
User avatar
Moderator

GK User
Thu Jun 06, 2013 3:59 pm
Reply with quote
Report this post
Thanks very much Cyberek. So I can get that setup for you, please can you let me know your fixed IP address? Thanks
User avatar
Gold Boarder

GK User
Thu Jun 13, 2013 3:13 pm
Reply with quote
Report this post
I have sent my fixed to you in PM and haven't received replay.
User avatar
Moderator

GK User
Thu Jun 13, 2013 3:34 pm
Reply with quote
Report this post
I have PM'd you the access details you need :-)
User avatar
Gold Boarder

GK User
Mon Jun 17, 2013 9:41 am
Reply with quote
Report this post
Please edit: /templates/gk_bikestore/css/override.css and add at its end:
Code: Select all
.additional-images img {
width: 100px;
}

change number so it fits size you want.
Just remember to enable "CSS override" in template settings - advanced section.

If it goest to IE - please tell me which version You have problem with?
User avatar
Moderator

GK User
Mon Jun 17, 2013 10:03 am
Reply with quote
Report this post
Thanks Cyberek - I have added the code and this has helped.
It has also fixed the problem in Internet Explorer.
The images are bigger but is it possible you can help me restore the original border around the thumbnails too? Thanks for all your assistance so far.
User avatar
Gold Boarder

GK User
Mon Jun 17, 2013 10:23 am
Reply with quote
Report this post
Could You show me how this border looked like? (screenshot edited with PhotoShop or other editing software would do the trick). Or just tell me how thick it was (1px, more?) and what colour?
User avatar
Moderator

GK User
Tue Jun 18, 2013 10:47 am
Reply with quote
Report this post
It was border: 1px solid #e5e5e5;

I can pm you screen grab too if you'd like?
User avatar
Gold Boarder

GK User
Tue Jun 18, 2013 12:37 pm
Reply with quote
Report this post
Ok, then edit in override.css the change I have sent to you, and change it to:
Code: Select all
.additional-images img {width: 100px; border: 1px solid #e5e5e5;}


If it will not work, try:
Code: Select all
.additional-images img {width: 100px; border: 1px solid #e5e5e5 !important;}
User avatar
Moderator

GK User
Tue Jun 18, 2013 12:48 pm
Reply with quote
Report this post
The first suggested code didn't work but the second did exactly what I needed.

Thanks Cyberek - you've been very helpful. :-)
User avatar
Gold Boarder


cron