Shamim Ahmed Shamim Ahmed - 1 year ago 75
PHP Question

How to remove all Custom option of all Products in Magento

I need to remove all custom option from all magento products. I have about 4k products. and all has custom option. now we don't need custom option. so we need to need to remove all. Is the any simple solution as if I can remove all custom option easily


Answer Source

Preferably don't directly execute a database query, but use magento models:


require_once 'app/Mage.php';



This -will- use multiple queries to delete your product options, but it should not be a big issue for 4000 products.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download