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.
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 import stock?
Inventory import depends on the number of sources/stocks that are created on Magento instance in Stores > Inventory > Stocks & Stores > Inventory > Sources. Case 1. Import to the instance with only one stock and source. Please use the following ...