Developer forum

Forum » Templates » VariantGroup options not sorted correctly in frontend

VariantGroup options not sorted correctly in frontend

Hans Ravnsfjall
Hans Ravnsfjall
Reply

Hi

In backend, my variant options for a certain variant group are sorted like this

s, m, l, xl

But when I loop throug the variant options in front-end, they come in this order

s, xl, l, m

That makes no sense. How can i achieve for the frontend to loop throug the variant group options in the same order that i have in backend.

/Hans


Replies

 
Nicolai Pedersen
Reply

Version? And the old catalog with template tags or the new one using viewmodels?

 
Nicolai Pedersen
Reply

There has been a bug on 9.12, #5312, that has been fixed in 9.12.4: https://doc.dynamicweb.com/downloads/releases/bug-fixes/known-bugs

 

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Perfekt, will update asap. When is 9.12.4 available?

 
Nicolai Pedersen
Reply

Tuesday I think.

You can update to the latest Dynamicweb.Ecommerce dll and get it now: https://www.nuget.org/packages/Dynamicweb.Ecommerce/

You can download the nuget package, rename it to .zip, unzip it and get the dll 

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Ok, thank you - I´ll wait for the release on tuesday  👍🏻

/Hans

 

You must be logged in to post in the forum