Commerce Stock Control hooks – Drupal Answers

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: commerce_simple_stock_form_commerce_order_item_add_to_cart_form_alter().

This hook doesn’t work for the Commerce Demo form.

The theme hook for the add to cart button in Commerce Demo is commerce_cart_flyout_add_to_cart_button().

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??