Multiple Product Image Fields

General ShopSite user discussion

Multiple Product Image Fields

Postby ashubert » Tue Sep 08, 2009 3:03 pm

More and more, retailers are displaying multiple photos of the same product, ie different angles, closeups, larger views, etc. Right now, Shopsite has one product image field and one more info product field.

I also have run into an instance where I cannot control the naming convention used in images controlled by third parties, ie Doba for my custom templates.

It seems that having field such as productimage01, productimage02, productimage03, productimage04, can solve any of these problems and would be a great enhancement
ashubert
 
Posts: 15
Joined: Tue Aug 22, 2006 1:41 pm
Location: Ventura, CA

use custom product fields

Postby mjbrunelle » Wed Oct 07, 2009 12:20 pm

I use [-- PRODUCT.Field4 --] for my image so I can control the vertical and horizontal spacing.

You've got 10 fields, plus the fixed Product Image field, seems you can store up to 11 images very easily.
mjbrunelle
 
Posts: 147
Joined: Sun Jun 21, 2009 5:09 am

Postby ashubert » Wed Oct 07, 2009 12:44 pm

Interesting POV,

I already use all of my product fields for data and also use both of the product image fields for images. Point is that if the cart had multiple image fields, we could use the custom fields for other things.

In my business, there is a lot of information that really should have it's own field in a database, especially if you are dealing with hundreds of products like I am. Like manufacturers part number, UPC codes, etc. Therefore custom fields get used up very quickly.

Also, if a shopsite site owner uses one of the prepackaged templates, he isn't messing around with custom fields or custom programming. He would need these fields even more. So Shopsite can add multiple product views to prebuilt more info page templates as well for those users as well.
ashubert
 
Posts: 15
Joined: Tue Aug 22, 2006 1:41 pm
Location: Ventura, CA

Postby BFChris » Wed Oct 07, 2009 12:48 pm

You could use the extra fields, image by image. However, that would use up your extra fields pretty quickly.

An idea I had, but haven't tested, is to store a listing of all the images in ONE extra product field, separated by commas. Then, pass the product field to a Javascript variable array and use some javascript to arrange them onto the page.
~~Barefoot Chris
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
BFChris
 
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA

Postby ashubert » Wed Oct 07, 2009 1:00 pm

Interesting thought! Could do that.

Typically I used the same naming convention for all of my products using the sku i.e. sku_01.jpg, sku_01_xlg. Then add this into the custom template like

<img src="/Store/media/[-- Product.SKU --]_01.JPG">

which frees up the product image field.

My real problem is with DOBA. They don't use a naming convention for their images. Nor is their image location the same. So I need to use the image fields for their data.
ashubert
 
Posts: 15
Joined: Tue Aug 22, 2006 1:41 pm
Location: Ventura, CA

Perhaps a Javascript patch

Postby mjbrunelle » Sun Oct 11, 2009 1:18 pm

The image address is for my store, you would have to use yours, and obviously your image files names

[SCRIPT FUNCTION]
function showImage(Image1,Image2,opt,id)
{
var imgDisplayImage = Image2;

if (opt==1)
{imgDisplayImage = Image1;}

document.getElementById(id).src = "http://dmindust.ipower.com/store/media/Labels/" + imgDisplayImage;
}

[PRODUCT TEMPLATE CODE]
<img id="imageID" width="120" height="255" src="" />
<script language="javascript">showImage([-- IMAGE PRODUCT.Graphic --],2,'imageID');</script>

[DATA IN PRODUCT IMAGE FIELD]

'dmi91001.png','dmi91002.png'
mjbrunelle
 
Posts: 147
Joined: Sun Jun 21, 2009 5:09 am

Postby ashubert » Mon Oct 12, 2009 10:13 am

Great post!! I will give this a shot. Much appreciated!!!
ashubert
 
Posts: 15
Joined: Tue Aug 22, 2006 1:41 pm
Location: Ventura, CA

Postby ShopSite David » Wed Nov 25, 2009 2:47 pm

FYI, in Service Pack 1 for ShopSite 10 support for multiple product images on the More Info page was added.
-David H.
ShopSite, Inc.
http://www.shopsite.com
ShopSite David
Site Admin
 
Posts: 317
Joined: Fri Aug 04, 2006 1:30 pm
Location: Utah

Postby Feydakin » Thu Nov 26, 2009 1:39 pm

Thanks David.. When (where) can we find detailed information on how to use the new feature?? My guess is that there is something that we will need to add to our custom moreinfo include to get the images to show properly..

BTW, this is one of my favorite improvements once I get it working on my site..
Feydakin
 
Posts: 42
Joined: Wed Jul 23, 2008 11:24 am
Location: Indiana

Postby Jim » Fri Nov 27, 2009 12:33 pm

Help is still be ing worked on for some of the new features.

Some of the new themes use this feature and looking at the source I found the tag [-- MoreInfoImageRow --] which I believe outputs a row of all the extra moreinfo images. I'm not sure if there is extra javascript that needs to be included to get them to switch the large image for the various small images as you click on them. Try looking at the BasicProduct-MoreImformationPage.sst in the includes directory for formatting.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby robm » Fri Nov 27, 2009 2:13 pm

We actually just posted a blog entry about the new features and custom tags (most of which can be found in the ShopSite Cookbook):

V10 SP1 New Custom Template Tags
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut

Postby Feydakin » Fri Nov 27, 2009 2:51 pm

Thanks for the heads up Rob..

I'm always so torn when new features like this roll out.. Its cool that we get it, but it forces me to choose between the new multiple images and the, IMO, better way of present larger images with Lightbox..

Here is the new code working on my site..
http://animalcharms.net/butterflyjewelr ... QE5237.php

I love having the extra images..

This is the code that I 'used' to have though..

Code: Select all
 [-- IF PRODUCT.MoreInformationGraphic --]
<span style="font-size: 9px'"><i>Click picture to enlarge</i></span><br>
<a href="http://animalcharms.net/media/[-- IMAGE Product.MoreInformationGraphic --]" rel="lightbox">
  [-- PRODUCT.MoreInformationGraphic --]</a>
 [-- END_IF --]


I don't have that level of fine control for the popups in the new image code..

New Code:
Code: Select all
[-- IF PRODUCT.MoreInformationGraphic --][-- MoreInfoImageRow --][-- END_IF --]


It also doesn't seem to pull the 'original' sized image when you click on it, it grabs whatever is set as the main more info image size.. Again, very cool feature that I've been waiting for, but it seems to have locked certain fine level control away from where I can get my grubby little fingers on it..

Does what I'm trying to say make sense??
Animal Charms : Animal jewelry that gives back
Feydakin
 
Posts: 42
Joined: Wed Jul 23, 2008 11:24 am
Location: Indiana

Postby robm » Fri Nov 27, 2009 2:58 pm

Try the Advanced tip from the ShopSite Cookbook:

Advanced - If you would like to have even more control of the images and how they are displayed you can use the regular product more information graphic tag, as well as the tag below to directly access the additional product images.

[-- Product.MoreInfoImageN --] - where N is 1 to 20


Maybe that will help with fine tuning your custom lightbox images.
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut

Postby Feydakin » Fri Nov 27, 2009 3:08 pm

Still playing with this and thinking about it..

Those thumbnail images really need to be below the main image, not forcing all of the content and text further down the page..

The more I look at it the more I hate it.. It has cost me my ability to present 'huge' images in a nice lightbox and it shoves my content further down on the page (a bad thing IMO)..

Like I said I love the 'idea' behind this, but I think the execution is too black box without enough control on my end to bland it in to my template the way I want it..
Animal Charms : Animal jewelry that gives back
Feydakin
 
Posts: 42
Joined: Wed Jul 23, 2008 11:24 am
Location: Indiana

Postby Feydakin » Fri Nov 27, 2009 3:25 pm

Hope no one minds, I get on the stream of thought issues and OCD kicks in :)

I now have the images stacked like they should be, but the [-- Product.MoreInfoImageN --] is calling the full size image rather than the extra small image..

This advanced method also seems to kill the onmouseover javascript call.. As you can see on the page mousing over the large orange gem image does nothing, but the purple gem behaves like it used to with the old code.. Here is where I am with the code right now..

Code: Select all
<table border="0" align="left"><tr><td>
 [-- IF PRODUCT.MoreInformationGraphic --]
<span style="font-size: 9px'"><i>Click picture to enlarge</i></span><br>
<a href="http://animalcharms.net/media/[-- IMAGE Product.MoreInformationGraphic --]" rel="lightbox">
  [-- PRODUCT.MoreInformationGraphic --]</a>
 [-- END_IF --]
</td></tr><tr><td>

[-- Product.MoreInfoImage1 --][-- Product.MoreInfoImage2 --][-- Product.MoreInfoImage3 --]
</td></tr></table>


I wish I hadn't been so sick during the very short beta testing window.. :wink:
Animal Charms : Animal jewelry that gives back
Feydakin
 
Posts: 42
Joined: Wed Jul 23, 2008 11:24 am
Location: Indiana

Next

Return to User Forum

Who is online

Users browsing this forum: No registered users and 131 guests