Product attributes not sorted by display order
Monday, November 25, 2024 2:18:51 PM
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.
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
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
Patryk
GrandNode Team
0
Bill wrote:
Thanks, Bill, for the link to the specific fix.
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.
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
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