Author |
Topic |
|
zamfir
Starting Member
USA
26 Posts |
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - August 29 2008 : 17:12:29
|
Each product should have 2 separate physical images stamped on it; ideally the thumbnail should have a small physical width/height and the larger one should have a mid-ranged physical size (eg a thumbnail might be around 120x120, a "large" image would be more like around 400x400), but it depends on the type of things you're selling.
In the vpasp admin edit-product page, the path of the thumbnail (ie the one shown on the shopdisplayproducts pages) is the "Image" field, and the path of the large image (ie the one shown on shopexd pages) is the "Large Image" field
That might seem obvious at first sight, but it's not truly intuitive, eg "Image" could in theory mean "image for this product" and "large image" could mean a separate blow-up image only available in certain popups etc, but it doesn't mean that, instead "Image" means "Thumbnail", and "Large Image" means "Product Detail Page Image".
In the database, the thumbnail is the "cimageurl" column and the large image is the "extendedimage" column.
You can tweak the templates to explicitly show the cimageurl with a specific display width/height instead of the generic "formatimage sub" template field, or you could tweak the underlying functions which generate that thumbnail (ie in the asp code) to force it to display as a specific width/height.
The issue here is, do you change your physical images to be a relevant size, or do you keep your existing images as-is and change the templates/programs to display the image with a more relevant height/width.
We do have an addon which might help you if you want to keep your physical images as-is, but change the display width/height to something more relevant. Using hard-coded specific widths/heights is quite easy and doesn't need an addon, what our addon does is to look at the physical dimensions of the image, uses your addon's configuration to work out how best to display it, and then displays it in the right proportions. For example it'll let you use maximum, minimum, fixed widths/heights (any combination/permutation, although usually having a "maximum width" and leaving the other options blank is the best way), and those config options are separate for product thumbnails, product details, and category thumbnails.
See: VP-ASP Dynamic Image Sizing: http://www.bigyellowzone.com/shopexd.asp?id=85
But if you just want to have fixed widths/heights for everything, then it's probably not worth using it; instead I'd just hard-code the display width/height into the templates instead.
So, have a think about how you want to achieve it (ie changing the physical images, changing the data, having hard-coded fixed widths/heights in the templates, or having something like the sizing addon), and then post here again and people can then confirm and add other ideas/solutions etc.
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons |
|
|
zamfir
Starting Member
USA
26 Posts |
|
zamfir
Starting Member
USA
26 Posts |
Posted - August 29 2008 : 17:28:12
|
The point here is that the thumbnails open up a large detail of the actual design that will go on the shirt when you go to the details page, otherwise it should ALWAYS show the shirt thumbs.
-Mark |
|
|
zamfir
Starting Member
USA
26 Posts |
Posted - August 29 2008 : 17:33:27
|
the important point here is that, yes, both the small and large images are fixed width, but they are not the same image at different sizes, they are different images, one is a thumb of a design on a shirt, and one is a detail of the design itself. So I couldn't just specify width/height. I need to use the image I put in the image field in my admin panel on the category display page.
Let me know if I'm still not making sense.
-Mark |
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - August 29 2008 : 18:35:48
|
yes, that all makes sense; it's all to do with the fact that the tmp_frontpage.htm template (and most others that display thumbnails) simply use [cimageurl], whereas shopdisplayproducts template (tmp_productformat.htm) and some others use the more dynamic/complex [formatimage sub].
But, delving into those functions it looks like it should still be using cimageurl for the source.
Something I did notice when looking at templates generally, is that the tmp_productthumbnail.htm file uses extendedimage instead of cimageurl, so, try one or both of these....
change tmp_productthumbnail.htm, changing:
<img border="0" src="[extendedimage]">
to:
<img border="0" src="[cimageurl]">
and/or go into site-setup, and make sure that under the products1 options, xproductdisplaytemplate is set to: tmp_productformat.htm
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons |
|
|
zamfir
Starting Member
USA
26 Posts |
Posted - August 30 2008 : 13:53:35
|
right on, Simon. it worked right off the bat just on the first part, I didn't have to do anything from admin.
I owe you one!
-Mark |
|
|
|
Topic |
|