Bug in Compare products list ?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 years ago
Hi.

In Version 1.40

If define attributes to products, when display the Compare Product List, the list is incorrect.
I thin the problem is in CompareProducts.ascx, and the properties used to compare attributes.


In CompareProducs.ascx.cs in line: 108 the comparation loading of Collection is with SpecificationAttributeOptionID, but
shuld be SpecificationAttributeID

I changed to this line:
      if (!allAttributeIDs.Contains(attribute.SpecificationAttribute.SpecificationAttributeID))
            allAttributeIDs.Add(attribute.SpecificationAttribute.SpecificationAttributeID);


and after I changed the line 182 to:
                        SpecificationAttribute attribute = SpecificationAttributeManager.GetSpecificationAttributeByID(specificationAttributeID);

and
        if (attribute.SpecificationAttributeID == attribute2.SpecificationAttribute.SpecificationAttributeID)


Now, the list display Ok

Sorry, buy but my english is very poor :)
14 years ago
see https://www.nopcommerce.com/Boards/Topic.aspx?TopicID=2591
I think that's what you were looking for.
14 years ago
Thanks, this is the solution
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.