Update custom attributes to global
-
Hey all,
I’m working on a site where we’ve imported a large amount of products (footwear and apparel) from a third part platform.
Before the import, I created a custom style to display the product size selection in a different way than the default drop down.
Unfortunately, the products have all imported with a ‘custom’ size attribute, which of course aren’t linked to the ‘global’ size attribute, meaning the styling isn’t working.
Is there an easy way I can update the attributes of these products from the custom ‘size’ attribute to the global ‘pa_size’ attribute?
I found this script, which sounds like exactly what I need:
https://gist.github.com/birgire/0ed300ae4436fcaf508c
But I haven’t been able to get it working.
Thanks!
- The topic ‘Update custom attributes to global’ is closed to new replies.