redirect if product doesn’t exist anymore
-
Hi,
I’ve been using your plugin on several websites (it’s awesome), but I have a new problem : one of them sometimes has to retire products from the store, and to do so, they either turn the product into a draft or put it in the bin. When they do that, the link just take customers to an empty cart page.
Could it be possible to put a failsafe in place that either :
– redirects to the shop page when the ?set_cart parameter has only one product (however its quantity) that does not exist anymore
– adds a notice to the cart page when the product is as a draft or in the bin that says something like “this product is unavailable”, like you did for when the stock equals zero ?Thanks !
- The topic ‘redirect if product doesn’t exist anymore’ is closed to new replies.