I know using MAGMI we can import to Magento much easier. For example, if you are importing products with an attribute value that does not exist yet, it will be created on the fly by MAGMI.
However, I have not found a way to import the attribute position value.
This results in attribute being created on the fly and being out of order.
Since I have over 300 different values, I was wondering if there was a way to import my attribute position values as well?
This can be with MAGMI or any other method.
Any help is greatly appreciated!
Best Answer
I don't know if this helps you much, but I did something like this using a custom script like this.
In my case I had to read the values from a CSV file, but anything goes as long as you are able to get your data into an array that looks like this:
I also did this for the
manufacturer
attribute but it works for any other attribute. Let's assume you have the array in the form described above. Here goes:Now you should have in the array
$toInsert
the labels that need to be added, and in$toInsertOrder
the positions of the labels. just set the options to the attribute and save it.