I have a Commerce Demo site that uses the off canvas flyout cart and I am using the Commerce Simple Stock module to stop items being sold if they are out of stock.
The module changes the stock number and prevents the item being loaded to the cart if already purchased. It sends user/status messages and removes the add to cart button using the following hook:
This hook doesn’t work for the Commerce Demo form.
The theme hook for the add to cart button in Commerce Demo is
The stock status messages show on the admin pages but not on the product page itself.
How to I hook the stock status message from the module to the product page??