nik Posted October 2, 2020 Share Posted October 2, 2020 I would like to use the native mechanism of the ps_emailalerts addon, so that a customer can enter his email at the product page of an out of stock product and getting notified when it is back in stock. I think that everything is set up correctly, but the hook does not fire up. Firstly, I have enabled this feature at the addon settings page, ny enabling the "Product availability" option The code was already in the product.tpl template <div class="product-out-of-stock"> {hook h='actionProductOutOfStock' product=$product} </div> On my positions page, ps_emailalert is the only module under the hook actionProductOutOfStock. It seems correct. (A thing I am not sure about: This hook is listed as "non-positionable hook".) But the hook is apparently not firing correctly. I am testing at the product page of an out of stock product and the html element shown above is completely empty. A similar issue had been reported in the past, in this archived post, but it didn't help me. Any clues? Thanks in advance Link to comment Share on other sites More sharing options...
nik Posted March 22, 2021 Author Share Posted March 22, 2021 Anyone? Link to comment Share on other sites More sharing options...
litzer Posted July 14, 2023 Share Posted July 14, 2023 Just do a override: class Ps_EmailAlertsOverride extends Ps_EmailAlerts { public function hookActionProductOutOfStock($params) { return $this->hookDisplayProductAdditionalInfo($params); } } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now