Select Items from the left-hand menu.
Press Custom Attributes at the top of the screen.
Press + New Product Attribute.
Under ATTRIBUTE CODE, enter disable_discount.
Under ATTRIBUTE NAME, enter Disable discount.
Under CUSTOM ATTRIBUTE TYPE, choose Product attribute / string.
Under FRONTEND INPUT TYPE, choose Select.
Under SELECT VALUES, press + Add New.
Enter false under VALUE and False under LABEL.
Press + Add New.
Enter true under VALUE and True under LABEL.
Under UI COLUMN SIZE IN POS, enter 4.
Press Save Changes.
Disable discount on specific products
You can disable discount discount for specific products by creating a product attribute with code 'disable_discount'.