Product Tag for Original Image

General ShopSite user discussion

Product Tag for Original Image

Postby rasbro » Tue Apr 17, 2007 5:17 pm

Is there a product tag that can be used for linking to the original image uploaded to shopsite, which could be used for the "Larger Image" link on the more info page for example?
Brian

Saturn Coast Technologies
www.saturncoast.com
rasbro
 
Posts: 12
Joined: Tue Jan 23, 2007 11:57 am

Postby Jim » Tue Apr 17, 2007 5:31 pm

Not sure what you mean.

In ShopSite 8.2 and later version there is the ability to have 3 resized versions of an image created. On the product page, search config screen and on the shopping cart config screen you can specify which of the resized images you want to use in each area.

So if what you are asking is for a larger image on the Moreinformation page then you could select the original size image. Then use a smaller version for the product as displayed on other pages.

You also have the option to upload different images that could be used 1 for the moreinfo page and another for the product pages.

The template tags for images will insert the appropriate image for the settings you entered when you configured the product. for the moreinfo page the tag would generally be one of these two

[-- PRODUCT.MoreInformationGraphic --] Returns a full <img src> tag for the product More Info Page graphic.
[-- IMAGE Product.MoreInformationGraphic --] Returns the path and file name of the product More Information Page graphic, relative to the store’s media directory.

or you could use one of these

[-- PRODUCT.Graphic --] Full <img src> tag for the product graphic.
[-- PRODUCT.Graphic Remove_HTML --] All information defined for the product graphic including the file path and attributes.
[-- IMAGE PRODUCT.Graphic --] The media subdirectory and file name of the product graphic
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby rasbro » Wed Apr 18, 2007 6:50 am

Sorry if I wasn't very clear in my question.

Yes, I am talking about the resized images. I essentially want to take advantage of and use the original image as the largest of the resized images. I don't want the more info page graphic to be the largest image displayed, therefore I would like to allow the customer the option of viewing the original larger image by clicking on the more info page graphic but it seems there is no tag to use for the original image. This means I would need to hard code the path to this image for each product and that can only be done using one of my custom fields. I didn't want to do this.

I hope that makes sense what I am trying to do.

Thanks,
Brian

Saturn Coast Technologies
www.saturncoast.com
rasbro
 
Posts: 12
Joined: Tue Jan 23, 2007 11:57 am

Postby Jim » Wed Apr 18, 2007 9:21 am

If you have a custom template you can get just the name of the image using the tag [-- image product.graphic --] or the equilevant one for the more info image. You can then create the url to the image using other template tags.
[-- OUTPUT_DIRECTORY_URL --]/media/<foldername>/[-- image product.graphic --]...

The normal [-- product.graphic --] will return the full img tag with the appropriate subdirectory for the resized image.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby rasbro » Wed Apr 18, 2007 10:14 am

I tried using that tag but it returns the ss-size1 image...

Using this tag:
[-- IMAGE Product.MoreInformationGraphic --]

Returns this link, relative to the media directory:
products/ss_size1/product.jpg
Brian

Saturn Coast Technologies
www.saturncoast.com
rasbro
 
Posts: 12
Joined: Tue Jan 23, 2007 11:57 am

Postby Jim » Wed Apr 18, 2007 10:46 am

Looks like there is a difference in the way these 2 tags are working. I'll have a developer look at it for a patch or future version.

So for now probably the best solution would be to use one of the custom fields to contain the image name.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby rasbro » Wed Apr 18, 2007 11:06 am

Okay, thanks Jim!
Brian

Saturn Coast Technologies
www.saturncoast.com
rasbro
 
Posts: 12
Joined: Tue Jan 23, 2007 11:57 am

Re: Product Tag for Original Image

Postby FredW » Wed May 01, 2013 7:14 am

Wondering about the resolution on this question. We also want the user to be able to click on the image on the product page and get a larger image - even without a more info page.
FredW
 
Posts: 188
Joined: Mon Apr 02, 2012 2:07 pm

Re: Product Tag for Original Image

Postby Jim » Wed May 01, 2013 1:56 pm

There hasn't been any change in the template tags for images that would allow you to do that type of action. I asked our template designer about it and here is what she said
My only suggestion what I do in my custom templates), is
put all product images in the main media directory (not a sub folder), and
then hard code the path to the image size I want.

<img src="[-- OUTPUT_DIRECTORY_URL --]/media/ss_size1/[-- IMAGE
PRODUCT.MoreInformationGraphic --]" alt="[-- PRODUCT.Name REMOVE_HTML --]">

The other option is to use the custom product fields to contain the image name and have the template code generate the urls to the various size images.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 15 guests