Include a custom status flag on WordPress blog post

I have a WordPress blog called “ ” and I need to implement a flag on the post page (WP-admin backend) that shows that a product has sold out. Default status: unflagged Sold out status: flagged When a product is flagged, the buy button should be disabled and should display a custom message “Sold out”.