Hello,
I am trying to add the Product Skues Module to the PagingProductTemplate (lists products within a category).
I keep getting the error below. When I step through the code it looks like it is breaking when it is DataBinding the variations list. I am setting the product attribute in the skus control as follows:
<uc1:ProductSkusModule ID="ProductSkusModule1" Product='<%# Container.DataItem %>' runat="server" />
I thought this would be a fairly straight forward thing to do, allowing a customer to add to their cart straight from the product listing page without having to click through to the product page but I am unable to get it work currently.
Any ideas?
Andrew
ps - I am running ECF 4.1.
Object reference not set to an instance of an object.
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
Object reference not set to an instance of an object.
Description:
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and
where it originated in the code.
Exception Details:
System.NullReferenceException: Object reference not set to an instance of an
object.
Source Error:
Line 16: <HeaderStyle Width="150px"></HeaderStyle>
Line 17: <ItemTemplate>
Line 18: <%# Mediachase.eCF.ClientLib2.Util.ClientHelper.GetAttributeByName("Name", ((Item)((RepeaterItem)Container.Parent.Parent.Parent.Parent.Parent).DataItem).ItemAttributes).Value[0]%><br />
Line 19: <ecf:PriceLineModule ID="PriceModule1" ListPrice='<%# DataBinder.Eval(Container.DataItem, "Price")%>'
Line 20: SalePrice='<%# DataBinder.Eval(Container.DataItem, "SalePrice")%>' |
Source
File:
c:\Projects\IrresistibleForce\PublicLayer\PublicStore\SharedModules\ProductSkusModule.ascx
Line: 18