Product attributes not sorted by display order

Friday, December 27, 2024 7:43:27 AM
  • Posted: Friday, February 1, 2019 2:45 PM
  • 10
In v4.20 product attributes are not sorted by display order on both the product details page and quick view.
1
  • Posted: Sunday, February 3, 2019 4:48 AM
  • 55
Rich,

Same issue with 4.30.  However, looks like this was fixed with commit a5f0a18df7029a7f07a54541f548190fe54f0f06 so you should see it working correctly with GrandNode 4.40.

0
  • Posted: Monday, February 4, 2019 10:49 AM
  • 953
Yes Bill, you are right. It will be fixed in the newest version of GrandNode. Taking into consideration that source code modification is not recommended, the best solution is to upgrade GrandNode to the newest version to get it fixed.
Best regards,
Patryk

GrandNode Team
0
  • Posted: Monday, February 4, 2019 1:06 PM
  • 10
Bill wrote:
Rich,

Same issue with 4.30.  However, looks like this was fixed with commit a5f0a18df7029a7f07a54541f548190fe54f0f06 so you should see it working correctly with GrandNode 4.40.



Thanks, Bill, for the link to the specific fix.
0
  • Posted: Tuesday, February 5, 2019 1:37 PM
  • 10
To sort product attributes by display order in the shopping cart, I also added an OrderBy to the following code in ShoppingCartViewModelService.cs:

public virtual string ParseProductAttributes(Product product, IFormCollection form)
        {
            string attributesXml = "";

            #region Product attributes
            var productAttributes = product.ProductAttributeMappings.OrderBy(x => x.DisplayOrder);
0
back to top
Filters