Prevent Checkout of Products with Out of Stock Status in Saved Carts
Posted: Wed Oct 28, 2020 10:08 am
Prevent Checkout of Products with Out of Stock Status in Saved Carts
--------------------------------------------------------------------
Customers can save a product in their cart and checkout at a later date when the product has since had its status changed to Out of Stock.
This hook prevents that by removing products with a status of Out of Stock from the customer's cart when they checkout and displays a message to say so.
Tested on Phoenix v1.0.7.9
Installation
------------
Upload all other than this README file.
There are ZERO over-written files so you are sure to be safe to upload all.
Credits
-------
Thanks to @ecartz for the solution and code.
--------------------------------------------------------------------
Customers can save a product in their cart and checkout at a later date when the product has since had its status changed to Out of Stock.
This hook prevents that by removing products with a status of Out of Stock from the customer's cart when they checkout and displays a message to say so.
Tested on Phoenix v1.0.7.9
Installation
------------
Upload all other than this README file.
There are ZERO over-written files so you are sure to be safe to upload all.
Credits
-------
Thanks to @ecartz for the solution and code.