Jump to content

Edit History

SRUTHI R BABU

SRUTHI R BABU

On 2/1/2024 at 2:16 PM, Prestashop Addict said:

You mean, when an order use Paypal payment method in ps_checkout the stock is not decremented?

Yeah something like that @Prestashop Addict. I have fixed the issue. The problem was I had written a custom code for the said functionality in hookActionValidateOrder on another module ( used for the mentioned quantity customisation ) and this hook was not executing properly when using Paypal via ps_checkout module. On further analysis it seemed like there is some sort of server issue ( discussion with team suggested this ) because when I tried to debug the same from PaymentModule class the action seemed to be working perfectly working. So I did the obvious instead of the hookActionValidateOrder I changed the function name in module and called it in paymentmodule class override and it now works perfectly. Thanks for all the responses. Hope this helps someone too :)

SRUTHI R BABU

SRUTHI R BABU

On 2/1/2024 at 2:16 PM, Prestashop Addict said:

You mean, when an order use Paypal payment method in ps_checkout the stock is not decremented?

Yeah something like that @Prestashop Addict. I have fixed the issue. The problem was I had written a custom code for the said functionality in hookActionValidateOrder on another module ( used for the mentioned quantity customisation ) and this hook was not executing properly when using Paypal via ps_checkout module. On further analysis it seemed like there is some sort of server issue ( discussion with team suggested this ) because when I tried to debug the same from PaymentModule class the action seemed to be working perfectly working. So I did the obvious instead of the hookActionValidateOrder I changed the function name in module and called it in paymentmodule class override and it now works perfectly. Thanks for all the responses anyways. Hope this helps someone too :)

×
×
  • Create New...