I'm adding a custom option (checkbox with 2 rows) programmatically to simple products (10.000+) after a import. All custom option values are the same.

Due to a memory issue it failed the first time (partially) and after setting a higher memory limit some products now have 2 custom options.

Is there a way get the amount of custom options through a collection and delete any second (or more) custom options so every product has only 1 custom option?


1 Answer 1


I just deleted all custom options programmatically by:

require_once '../app/Mage.php';

and then run the code for adding custom options programmatically again.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.