Jump to content

Partial refund - how hook-into/get-notified?


pisod

Recommended Posts

Hi

 

Prestashop 1.6 (and hopefully supported by 1.5)

 

If I understand it correct there are 3 types of refunds.

 

1 Refund everything in an order, done by changing status

Get notified: Best way is to hook into adminOrder

 

2 Standard refund, done by specifying the quantity of an item to be refunded.

Get notified: Best way is to hook into actionProductCancel

 

3 Partial refund, done by specifying the amount to refund from each item

Get notified: ???????????????

 

 

 

Question: How to get notified (code wise of course) when a partial refund (3 above) is made?

 

Thanks

Link to comment
Share on other sites

I solved it. Every time a partial refund is made an entry in order_slip is added and also in order_slip_detail. So I made my on table storing all slips that I had handled and if there was another slip available I just handled that as a partial refund. There is a field in order_slip that is named "partial" which I used.

 

Hopes this helps someone.

  • Like 1
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
×
×
  • Create New...