回帖总数:
7
业力:
35
注册日期:
2009/7/15
位置:
United States
What modification did you have to make in the Productinfo.ascx file in the folowing section: <div class="ProductDetailsInfo"> <div class="picture"> <asp:Image ID="defaultImage" runat="server" /> </div> to make the lightbox event fire?
回帖总数:
1794
业力:
14506
注册日期:
2009/10/7
位置:
United Kingdom
none ... just the code change in the codebehind is all (as detailed at the start of this post) - recompile the solution and when the product page opens up, a thumbnail image should appear in 'short description' - click thumbnail to enlarge it
回帖总数:
7
业力:
35
注册日期:
2009/7/15
位置:
United States
Thanks for the help but I am having issues with recompiling this. I am using VWD 08 and the 1.4 webready release. I do a build but it seems none of the DLL files in the BIN folder changes so I made a cahnge in my web.config file to force my site to recompile on load but still no luck. Any advise on the build process is appreciated.
回帖总数:
1794
业力:
14506
注册日期:
2009/10/7
位置:
United Kingdom
VWD does not recompile the project - you will need either visual studio08 or 2010beta can i suggest you go to microsoft website , search for sql express and download with all features (it will download the web platform installer first)
回帖总数:
31
业力:
155
注册日期:
2009/9/9
位置:
United States
A work-around would be to make your 2nd image a clear .gif, 1px by 1px.
回帖总数:
148
业力:
760
注册日期:
2009/5/10
Skiltz and MB, I tried that code and it only seems to work when variants in grid is selected. But, when single product variant is selected it doesn't work. Is it true or am I missing something? Is there a fix, because my products are displayed in single product variants? Thanks
回帖总数:
1794
业力:
14506
注册日期:
2009/10/7
位置:
United Kingdom
for v1.5 open OneVariant.ascx.cs find and edit the following accordingly : protected void BindProductInfo(Product product) { lProductName.Text = Server.HtmlEncode(product.Name); lShortDescription.Text = product.ShortDescription; lFullDescription.Text = product.FullDescription; var productPictures = product.ProductPictures; if(productPictures.Count > 0) { defaultImage.ImageUrl = PictureManager.GetPictureUrl(productPictures[0].PictureID, SettingManager.GetSettingValueInteger("Media.Product.DetailImageSize", 300)); defaultImage.ToolTip = String.Format(GetLocaleResourceString("Media.Product.ImageAlternateTextFormat"), product.Name); defaultImage.AlternateText = String.Format(GetLocaleResourceString("Media.Product.ImageAlternateTextFormat"), product.Name); lvProductPictures.DataSource = productPictures; lvProductPictures.DataBind(); }// else if(productPictures.Count == 1) // { // defaultImage.ImageUrl = PictureManager.GetPictureUrl(productPictures[0].PictureID, SettingManager.GetSettingValueInteger("Media.Product.DetailImageSize", 300)); // defaultImage.ToolTip = String.Format(GetLocaleResourceString("Media.Product.ImageAlternateTextFormat"), product.Name); // defaultImage.AlternateText = String.Format(GetLocaleResourceString("Media.Product.ImageAlternateTextFormat"), product.Name); // lvProductPictures.Visible = false; // } else { defaultImage.ImageUrl = PictureManager.GetDefaultPictureUrl(SettingManager.GetSettingValueInteger("Media.Product.DetailImageSize", 300)); defaultImage.ToolTip = String.Format(GetLocaleResourceString("Media.Product.ImageAlternateTextFormat"), product.Name); defaultImage.AlternateText = String.Format(GetLocaleResourceString("Media.Product.ImageAlternateTextFormat"), product.Name); lvProductPictures.Visible = false; } } RECOMPILE AFTER ALTERATION
回帖总数:
177
业力:
1094
注册日期:
2010/5/20
位置:
United Kingdom
Thsank you the little change worked a treat Steve
回帖总数:
11
业力:
55
注册日期:
2010/5/7
位置:
Ireland
Worked like a charm.... May be better to give this option in Admin end to switch ON/OFF