Since we can apply different coupons to each product in an order,
Is there any method to know which coupon is applied to which product?
I’ve used $order->get_used_coupons()
function but it just returns the used coupon codes only.
Please help with a solution.
Thanks.
This example is based on compiled searches:
References :