Jan Fromm Posted June 9, 2022 Share Posted June 9, 2022 Hi @kongondo, The price hook $this->addHookAfter('PadloperCart::getProductPrice', null, 'customProductPrice') is not applied completely. I have added it according to the documentation. It works as expected at first – When adding a product, the hook fires and changes the price in cart-edit and cart-view. But when proceeding to the checkout page, the stock price gets applied instead of the custom price. I think that is because the price of an ordered product is not stored in the database, only product ID and quantity. But the price should be saved too for the hook to work, right? The same goes for the customProductTitle hook. Link to comment Share on other sites More sharing options...
kongondo Posted June 9, 2022 Share Posted June 9, 2022 Hi @Jan Fromm, Thanks for reporting I'll have a look and get back to you. 1 Link to comment Share on other sites More sharing options...
kongondo Posted June 9, 2022 Share Posted June 9, 2022 Hi @Jan Fromm, Similar to the non-object issue, I have fixed this directly on your site files. I'll update the Padloper source files later and upload for downloading as usual. Could you please check that it works? 13 hours ago, Jan Fromm said: The same goes for the customProductTitle hook. Could you confirm that this doesn't work? I didn't find any issues with it. Thanks. Link to comment Share on other sites More sharing options...
Jan Fromm Posted June 10, 2022 Author Share Posted June 10, 2022 Sorry, my mistake. I had placed the hooks in the products template. Now they are in _init.php and are applied properly. Thanks again @kongondo! 1 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