Product images are hosted, HELP!
Posted: Fri Dec 03, 2010 10:31 pm
My products are bulk imported and the product images need to reference a hosted location. On some of the product pages, the hosted imgaes show just fine. For example, use [url]http:/content.hostedsource.com/Large/11391790.jpg[/url] as the Standard Image path. If you then click on the details of the product the image is the red x. The url for that red x is a combo of the site domain and the appended URL ,http://mysite.com/content.hostedsource. ... 391790.jpg.
After looking at the Show Product 1 scriptlet and the ProductImage.ascx.cs I have determined that this page wants to use the \Products folder to load product images. What is the best way to ignore the local drive and just use the image URl?
Here is the code I am referencing :
Thanks,
Jason
After looking at the Show Product 1 scriptlet and the ProductImage.ascx.cs I have determined that this page wants to use the \Products folder to load product images. What is the best way to ignore the local drive and just use the image URl?
Here is the code I am referencing :
Code: Select all
phProductImage.Controls.Add(new LiteralControl("<img id=\"ProductImage\" src=\"" + Page.ResolveClientUrl(imageUrl) + "\" border=\"0\" alt=\"" + Server.HtmlEncode(imageAltText) + "\" />"));
Jason