Magento 2 – create customizable options programmatically

You may also like...

4 Responses

  1. Udo says:

    Looks good to us, thank you!

    We have imported our products from our old shop system to Magento 2 and we are facing an issue with customizable options. As the major snippet for programmatically editing options already exists her, it might be an interesting job to create a module that basically runs through all our products, looks for specific customizable options and then changes the options of these articles in the database. Finally, an update of the phtml for product view would be required (showing some attributes only when the first attribute is selected).

    We would be happy to hear a proposal from somebody 🙂

    It would deal with

  2. dariel says:

    Hi,

    where to save the file? I can’t find the filename/path of the script.

    • magemaster says:

      you can create a simple script for it and place it in your Magento root (fast and simple solution), or better: create a new module and put it into a class.

Leave a Reply

Your email address will not be published. Required fields are marked *