Refund calculation when admin coupon is applied
-
Hi,
I’m currently using:
Dokan 3.2.11
WordPress 5.8.1
WooCommerce 5.6.0I’ve applied a patch from this PR to enable admin coupon:
https://github.com/weDevsOfficial/dokan/pull/685It’s an old patch, but I’ve updated it to follow current Dokan’s version. And it’s been working good, making correct commission and earning calculation based on vendor/admin coupon is used. But when doing refund, I got an issue, because it’s still using Dokan’s default calculation ( https://wedevs.com/docs/dokan/refund/ ).
Can you please tell me which file & functions are used during refund? Especially the one calculating the amount vendor should refund. Because I need to override Dokan’s default calculation.
Also I’m not sure when is the vendor refund amount calculation is done. Is it when a refund approved? Or it’s already done since order creation (and stored somewhere in the DB)?
Thanks in advance, and let me know if you need more info.
The topic ‘Refund calculation when admin coupon is applied’ is closed to new replies.