CODE
Rating 0 stars - 0 votes

Change Sort Order of Magento Attribute Dropdowns

Configurable products allow displaying product attributes as dropdowns with options at the frontend. Often, store owners would add attributes at the backend randomly. But when they want to change sort order of attribute dropdowns in Magento 2, they have do it programmatically. An alternative to code editing is using Store Manager for Magento.

Change Sort Order of Magento Attribute Dropdowns Via Import

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.

Configurable Product in Frontend
Change the Order in which Drop-Downs of Configurable are Displayed

Here is a file that we've prepared for import. As you can see, it has only four columns:

  • Product identifier (SKU, ID)
  • Column with SKUs of associated to configurable simple products (column 2 at the screenshot)
  • Configurable attributes (color and size)
  • Attribute position of configurable products where you indicate numbers that correspond to sort order of attributes in previous column.
Change attribute position in a file
Change the Order in which Drop-Downs of Configurable are Displayed

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.

Choose the correct delimiter
Change the Order in which Drop-Downs of Configurable are Displayed

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.

Result in frontend
Change the Order in which Drop-Downs of Configurable are Displayed

As you can see, attribute dropdowns for this Magento configurable products are now displayed in correct order.

Change Sort Order of Magento 2 Attribute Dropdowns with Store Manager Download FREE trial



Related Articles:


Card image

Massively Associate Child Simple Products to Main Configurable via Import to Magento

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...

Card image

Simple Products with Custom Options VS Configurable Products

Detailed comparizon of Magento configuable products and Magento simples with custom options. Read More...

Card image

Magento Configurable Products VS Magento Grouped Products

Check the detailed explanation of how to distinguish Magento configurable products from Magento grouped products. Read More...

Card image

Upload Magento Swatch Images to Configurable Products

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...


COMMENTS
stefan68
stefan68 • 08/31/2016

Thanks for your tutorial!