1

I have several products like the one depicted below. We want shelf finish to be the first choice and load capacity to be the second one. I understand this can be changed in the admin panel however I have well over 300 products like this and manually changing every single product would take days.

Does anyone have a programmatic solution (PHP or SQL) to flip these choices?

Configurable product options incorrect

Manoj Deswal
5,80325 gold badges29 silver badges50 bronze badges
asked Sep 26, 2017 at 19:56

1 Answer 1

0

I'll answer my own question as I figured it out after poking around the database a bit. Your SQL query should look something like this: Update catalog_product_super_attribute as a, catalog_product_super_attribute as b SET a.position = 2, b.position = 1 WHERE a.attribute_id = "second_attribute_id" and b.attribute_id = "first_attribute_id";

That should do the trick

answered Oct 13, 2017 at 16:30

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.