...
First you can block or discontinue an item.
Second you can provide a replacement. (Please note, the replacement is shown to the customer at the time of validation, but it is not forced selection. The customer has the option to opt for a different substitute if they so choose.)
This can all be done for set timeframes (or permanently) as well as for all customers or only specific ones.
...