Exclude Item Image from Email

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
User avatar
Road Rider
Commander (CMDR)
Commander (CMDR)
Posts: 144
Joined: Sat Jan 26, 2008 12:43 pm
Contact:

Exclude Item Image from Email

Post by Road Rider » Wed Oct 15, 2008 11:52 am

They say a picture is worth a thousand words:

Image

This is my confirmation email. How do I eliminate certain SKU's from returning an image in the email as no image exists for discounts or coupons and items of that nature. I would obviously then want to apply the same logic to the "review this product" link so that does not display for items with a certain SKU.
Doug Morrison
Director of Marketing and eCommerce
Bike Authority
http://www.bikeauthority.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Exclude Item Image from Email

Post by mazhar » Wed Oct 15, 2008 12:16 pm

By checking their type. For example

Code: Select all

#if (($orderItem.OrderItemType == "Product"))
 //then image here
#end

User avatar
Road Rider
Commander (CMDR)
Commander (CMDR)
Posts: 144
Joined: Sat Jan 26, 2008 12:43 pm
Contact:

Re: Exclude Item Image from Email

Post by Road Rider » Wed Oct 15, 2008 4:03 pm

So I am clear, here is my current code:

Code: Select all

#if ($orderItem.product.ThumbnailUrl.Substring(0,2) == "~/") <a href="${store.StoreUrl}/Product.aspx?ProductId=${orderItem.ProductId}"> <img src='$store.StoreUrl/$orderItem.product.ThumbnailUrl.Substring(2)' border="0" /> </a> #else Image Not Available #end
You are thinking I should change it to this:

Code: Select all

#if (($orderItem.OrderItemType == "Product"))
($orderItem.product.ThumbnailUrl.Substring(0,2) == "~/") <a href="${store.StoreUrl}/Product.aspx?ProductId=${orderItem.ProductId}"> <img src='$store.StoreUrl/$orderItem.product.ThumbnailUrl.Substring(2)' border="0" /> </a> #else Image Not Available #end 
Doug Morrison
Director of Marketing and eCommerce
Bike Authority
http://www.bikeauthority.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Exclude Item Image from Email

Post by mazhar » Thu Oct 16, 2008 5:24 am

Yes your are right

User avatar
Road Rider
Commander (CMDR)
Commander (CMDR)
Posts: 144
Joined: Sat Jan 26, 2008 12:43 pm
Contact:

Re: Exclude Item Image from Email

Post by Road Rider » Thu Oct 16, 2008 7:26 am

Hmmm. Doesn't work. Any other ideas?
Doug Morrison
Director of Marketing and eCommerce
Bike Authority
http://www.bikeauthority.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Exclude Item Image from Email

Post by mazhar » Thu Oct 16, 2008 8:04 am

Give a try by checking if there is no thumbnail available then no need of image.

Code: Select all

#if ($orderItem.product.ThumbnailUrl != "")
#if ($orderItem.product.ThumbnailUrl.Substring(0,2) == "~/") <a href="${store.StoreUrl}/Product.aspx?ProductId=${orderItem.ProductId}"> <img src='$store.StoreUrl/$orderItem.product.ThumbnailUrl.Substring(2)' border="0" /> </a> #else Image Not Available #end
#end

User avatar
Road Rider
Commander (CMDR)
Commander (CMDR)
Posts: 144
Joined: Sat Jan 26, 2008 12:43 pm
Contact:

Re: Exclude Item Image from Email

Post by Road Rider » Thu Oct 16, 2008 8:19 pm

Ok..... Maybe I am going the wrong direction and trying to solve the wrong problem.

I am good with the current setup I have for product and items that are not products other than I do not want the "Review this product" image link displayed for things that are not products.

My current code for displaying the Review Link is:

Code: Select all

<a </a href="${store.StoreUrl}/ProductReview.aspx?ProductId=${orderItem.ProductId}">
	<img border="0" src="http://www.bikeauthority.com/ablecomm/app_themes/bikeauthority/images/btn-review-this-product.gif" width="118" height="22"></a>
I am trying to figure out how to not display the review link when the item is certain SKU's or not products. I like the idea of certain SKU's as I can manage this by listing which SKU's I do not want the link to display.
Doug Morrison
Director of Marketing and eCommerce
Bike Authority
http://www.bikeauthority.com

Post Reply