Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Detailed Product Images - Thumbnail Widths

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-13-2011, 05:54 AM
 
nickff nickff is offline
 

Senior Member
  
Join Date: Aug 2010
Posts: 132
 

Default Detailed Product Images - Thumbnail Widths

Hi All,

On a new site I'm building, I'm using some "responsive web design" so that the layout of the site automatically responds to the size of the screen, adjusting as necessary. This technique utilizes Ethan Marcotte's "Fluid Image" concept to resize images on the fly.

I have this working great on this site, with one exception - detailed product image thumbnails. These images refuse to resize dynamically. They stay the same width, no matter what.

Try resizing your browser window on this page, and you'll notice that the large product image correctly scales as you resize, while the thumbnails do not:

http://future.thefutureforward.com/~field/dopp-kit.html

I've realized that the width of the divs around the thumbnails (.dpimages-icons-box) is set by the configuration setting "Maximum width of a detailed product image thumbnail" in the detailed product image settings in the admin. This is a required field in the admin and I've tried overriding that width setting by hacking "SITE/MODULES/DETAILED_PRODUCT_IMAGES/PRODUCT_IMAGES.PHP" to no avail.

If anyone has any ideas as to why those images aren't resizing, and how to UNSET the fixed width of the divs around the images, that would be amazing!

Thanks so much.
__________________
nick hoag
looking forward to the future
http://thefutureforward.com
xcart versions 4.2.x, 4.3.x, 4.4.x
Reply With Quote
  #2  
Old 10-13-2011, 09:45 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Detailed Product Images - Thumbnail Widths

Are you using generated thumbnails or uploaded ones?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 10-13-2011, 09:54 AM
 
nickff nickff is offline
 

Senior Member
  
Join Date: Aug 2010
Posts: 132
 

Default Re: Detailed Product Images - Thumbnail Widths

I think detailed image thumbs are always generated.

And I actually got it working by placing a div around each individual thumbnail, and then using Ethan's responsive design formula for the width and margin percentages. Check it out by resizing your browser here:

http://future.thefutureforward.com/~field/dopp-kit.html
__________________
nick hoag
looking forward to the future
http://thefutureforward.com
xcart versions 4.2.x, 4.3.x, 4.4.x
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:55 AM.

   

 
X-Cart forums © 2001-2020