I've got the SKU, manufacturer name and part number appearing on the product details page after searching the forums and doing some tinkering but the manufacturer image is still causing an error when I write the code.
I took this from the the post above :
Picture manufacturerPicture = manufacturer.Picture;
string pictureUrl = PictureManager.GetPictureUrl(manufacturerPicture, 100);
this.lManufacturerPicture.Visible = true;
this.lManufacturerPicture.ImageUrl = pictureUrl;
And this one from the manufacturers page :
var lManufacturerPicture = FindControl("lManufacturerPicture") as HyperLink;
lManufacturerPicture.ImageUrl = PictureManager.GetPictureUrl(manufacturer.PictureID, SettingManager.GetSettingValueInteger("Media.Manufacturer.ThumbnailImageSize", 125), true);
And I keep getting "
manufacturer does not exist in the current context" in the tool tip. Any ideas why the code is throwing up this error ? it's a straight cut & paste from the manufacturers.ascx.cs file ?
This all works OK tho':
OneVariant.ascx
lSKU.Text = product.ProductVariants[0].SKU;
lManufacturerPartNumber.Text = product.ProductVariants[0].ManufacturerPartNumber;
lManufacturerName.Text = product.ProductManufacturers[0].Manufacturer.Name;
OneVariant.ascx.cs
<asp:Literal ID="lSKU" runat="server" />
<asp:Label ID="lManufacturerPartNumber" runat="server" />
<asp:Label ID="lManufacturerName" runat="server" />