VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Customization
 Simple frigging question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

zamfir
Starting Member

USA
26 Posts

Posted - August 29 2008 :  15:43:35  Show Profile  Visit zamfir's Homepage  Reply with Quote
OK

On this page: http://volaretees.com/shopping/shopdisplayproducts.asp?id=10&cat=Men%27s+Artsy+Stuff

I want to show the small images, not the large ones. I ONLY want the large images to display on the detail/order page.

Anybody know how to do that?

Gaaaaah!

-Mark

devshb
Senior Member

United Kingdom
1898 Posts

Posted - August 29 2008 :  17:12:29  Show Profile  Visit devshb's Homepage  Reply with Quote
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
Go to Top of Page

zamfir
Starting Member

USA
26 Posts

Posted - August 29 2008 :  17:26:03  Show Profile  Visit zamfir's Homepage  Reply with Quote
i know precisely how I want to do it. I want to use the small images as they are, on this page right here (which is currently set to show the LARGE images) and bending my 4 column layout all out of whack): http://volaretees.com/shopping/shopdisplayproducts.asp?id=10&cat=Men%27s+Artsy+Stuff

That page should be using the identical images that this page displays (correctly): http://volaretees.com/shopping/default.asp

I'm not sure if I can be clearer than that.

-Mark
Go to Top of Page

zamfir
Starting Member

USA
26 Posts

Posted - August 29 2008 :  17:28:12  Show Profile  Visit zamfir's Homepage  Reply with Quote
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
Go to Top of Page

zamfir
Starting Member

USA
26 Posts

Posted - August 29 2008 :  17:33:27  Show Profile  Visit zamfir's Homepage  Reply with Quote
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
Go to Top of Page

devshb
Senior Member

United Kingdom
1898 Posts

Posted - August 29 2008 :  18:35:48  Show Profile  Visit devshb's Homepage  Reply with Quote
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
Go to Top of Page

zamfir
Starting Member

USA
26 Posts

Posted - August 30 2008 :  13:53:35  Show Profile  Visit zamfir's Homepage  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000