Jump to content

Price hook not applied


Jan Fromm
 Share

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...