It is a common practice to use Magento configurable product type for the products with changeable properties. These properties are displayed through dropdowns with specific options, customers can choose from. It may happen that you need to update the sort order of attribute dropdowns in Magento 2 or change the order of values within dropdowns.
Let's take a laptop as an example. Purchasing a laptop, users can choose from different colors, capacity, and style. Suppose, you have created a product with a color dropdown displaying first, style second, and capacity the third. But you want the "style" option to be displayed first. Let's see how to change the dropdown display from the admin.
It is a common situation when you want to sort the options for size from the smallest to the biggest, place the options in the alphabetical order, etc.
To change order of attribute values in a dropdown via your store backend:
If we go to the product page, we'll see that positions of values within the dropdown has changed.
Magento 2 allows to update the position of dropdowns at a configurable product page only via configuration editing. The attributes, used for variations, should be reordered on the second step of the configuration wizard. Here are the steps to be fulfilled.
If configuration update is too much work for you to be performed just to change dropdown display, you can choose another way. Store Manager for Magento allows you to manage position of Magento 2 attributes easily within one window.
If you want to edit attributes sort order for existing configurable products, you can do it in a few clicks using the flexible import tool with Store Manager for Magento. Let's see how it works.
Here is a sample product with two options, color being the first on the list and size being the second.
Here is a file that we've prepared for import. As you can see, it has only four columns:
Note: All the multiple values in the file are separated by a delimiter, in our case, it is a comma (,) symbol.
You will have to indicate the delimiter (the one you use in your file) at the appropriate step of the Import Wizard.
If you are uploading new configurable products with associated items, you need to include more fields in your import file. Check this step-by-step tutorial on how to create Magento 2 configurable products via import.
Let’s see what we have got as a result.
As you can see, attribute dropdowns for this Magento configurable products are now displayed in correct order.
Check how to link simple products to configurables when the simple products are already created and in the case they need to be previously created; get the csv samples. Read More...
Detailed comparizon of Magento configuable products and Magento simples with custom options. Read More...
Check the detailed explanation of how to distinguish Magento configurable products from Magento grouped products. Read More...
Get the full explanation of Magento swatch images and their purpuses and find out the ways to assign them to products via admin and Store Manager. Read More...
This website uses cookies.
Thanks for your tutorial!