Developer forum

Forum » Ecommerce - Standard features » Sort variants of a product

Sort variants of a product

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

What's the easiest way to sort variants of a product?

 

We have a customer that created a bunch of variants but now they want to sort them in a specific order and the UI does not seem to allow for that. I also looked at the EcomVariantOptionProductRelation table that there is no Sort column. 

 

How can I achieve this?

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Pedersen
Reply

Sort them for what? Where? If I have Colors and Sizes - and you display a product detail. Then what? Please explain the scenario. EcomVariantOptionProductRelation  would contain Blue.Small, Blue. Large and Red.Medium. What will I sort, and what would it affect?

Options are sorted in their group in settings - so you can specify that blue is before red and small before medium.

If you explode variants on the product list, then the variants are products, and they are sorted by a search. Then you could use the sort field on the product table.

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply
This post has been marked as an answer

Hi Nicolai,

 

That was a dumb question on my part. All I need is to sort the variant options within a specific variant group.

 

Best Regards,

Nuno Aguiar

Votes for this answer: 1

 

You must be logged in to post in the forum