Developer forum

Forum » Ecommerce - Standard features » Ecom:Product.ImageSmall not populating

Ecom:Product.ImageSmall not populating

Charles Johnson
Reply

We've got the Small Image populated for many of our products in Ecommerce (Ecommerce > Product Catalog > > Product group/product > Media tab > Media panel).  However, when I use the product field in a template, nothing shows up.  If I list out the Template Tags, the Ecom:Product.ImageSmall tag is blank.  We have this handled with the Default image, so the site appears OK, but I'm trying to figure out if there's something else I need to do to get the images to show up.

The actual code that is being used to display the image is this:

<img src="/Admin/Public/getimage.ashx?Image=@orderLine.GetValue("Ecom:Product.ImageSmall.Clean")&Width=100" alt="" title="@orderLine.GetValue("Ecom:Product.Name")" />

I've attached images of the Media tab, and the templatetags() output.

Any help would be appreciated.

Thanks!
Charles

 

small.JPG tags.JPG

Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

HI,

As per your screen, you use old DW89 admin not already supported nowadays. I've checked the rendering on last DW953 and can see all tags related to S/M/L images of product (or default images provided with appropriate setting in Settings-Ecommerce-AC-Images) are rendered correctly in product page as well as in cart order line. The issue could already be fixed on 95 only long time ago, so I can recomend to use 95 admin or try to play by image settings described with the following manual's articles  - 1 & 2 & 3 (the manual describes DW95 but could be mainly used for 89 as well)

BR, Oleg QA  

 
Nicolai Pedersen
Reply

Hi Charles

Correction: 8.9 is still supported. Sorry about the confusion.

I can see that you use Orderline.GetValue indicating that you are in the cart and tries to output the image in that context? Else, that is probably the issue.

It would be helpful to see the full screen shots of your product in backend, the page in frontend, and some more of your template context and some information on what and where you render the information - that helps us understand.

Thanks for clarifying.

BR Nicolai

 

 
Charles Johnson
Reply

OK, this is interesting, I went to create the screenshots you requested, and the image now shows up in the template tags.  I've attached a screenshot of that.  Are the template tags cached?  Is there something I can do to force a refresh after I change something?  I can force it to happen if I recycle the app pool, is that what's required?  Here are the steps I took this morning to see if I could reproduce.

  1. Add an image in (Ecommerce > Product Catalog > > Product group/product > Media tab > Media panel)
  2. Refresh the page showing the template tags for that product (in this case, I'm using a cart that has that product in the cart as an orderline)
  3. The image from step 1 does not show up in the template tags
  4. Recycle the IIS AppPool for the site
  5. Refresh the cart
  6. The image from step 1 does show up

If this is the expected behavior, that's good to know, and I can come up with a process for handling this moving forward.

 

Thanks!
Charles

 

AfterWaiting.JPG
 
Nicolai Pedersen
Reply

Hi Charles

They should not be cached. But the cart is - and it has a reference to a product object from the time the product was added. So iisreset gives you a new product instance with the image.

Seems like that is the issue.

This behavior is changed in 9.5

Thanks, Nicolai

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

@Charles: I think that also means if you remove the item from the cart and add it back in, it should also work. This means that other users that add the product to the cart aren't affected, only for those that already have it in the cart.

 

You must be logged in to post in the forum