In my instance, all options for Custom Stock Status attribute are greyed out and I’m not able to edit them or add new ones

In my instance, all options for Custom Stock Status attribute are greyed out and I’m not able to edit them or add new ones

      The issue arises due to the reset entity in the DB that happens during module update/installation. In order to fix it, you need to modify the value of the is_user_defined entity in the DB.
This could be done with the following command:

UPDATE tableprefixeav_attribute SET is_user_defined = 1 WHERE attribute_code = 'custom_stock_status';
      In the command, please substitute the 'tableprefix' text with the table name corresponding to your instance. You can find the name of the table in the file app/etc/env.php:



      Alternatively, you can do the same manually via a DB manager you’re using (instead of running a command) - update the value of the entity and save the changes.
      If you face any difficulties, please contact our support team

      • Related Articles

      • Custom Stock Status API

        1. Amasty\Stockstatus\Api\RuleRepositoryInterface - class for managing custom stock status rules. POST /V1/amasty_stockstatus/rule, method="save" - create a custom stock rule; PUT /V1/amasty_stockstatus/rule/:id, method="save" - edit a custom stock ...
      • Custom Stock Status | GraphQL methods

        Query getAmCustomStockStatus description: get information about a stock status
      • Is it possible to add a custom attribute (Brand, SKU, etc.) to the list of sorting options?

        Our Improved Sorting module extends the standard Magento sorting by adding new sorting options which are: Best Sellers, Top Rated, Most Viewed, etc. Nevertheless, it is possible to add a new option to the sorting list using the default Magento ...
      • How to install an Amasty PWA add-on?

        At the moment Amasty PWA add-ons are installed via yarn. The add-ons could be downloaded from the Products tab in the customer account after the purchase. Before starting the installation process, make sure that the Magento instance meets the ...
      • How to apply statuses only to products with specific quantity?

        The module works with the Magento product attributes as a basis for forming the product collection that receives a custom stock status. In Magento, quantity is a system attribute that cannot be used in rules' conditions. Due to this, setting a status ...