But $coupon->type doesn't work. How can I get the coupon types used in the order? And how can I get the original coupon amount?. Thanks.
Here is a nice snippet that i really like. It will allow you to show the coupon codes used in order on the order edition page, and on the ...
I think this will solve your problem. I tested the code and it worked as: echo order no; echo used coupons for this order no; run step 1 and step 2 ...
Im trying to get orders in WooCommerce (ideally through wc_get_orders) where the coupon code "some_code" was used. My try: function ...
WooCommerce - display order coupons used in confirmation email and edit order page - gist:7370707.
You can customize the “$to” variable and define your own email address, and the “$message” to have your own text. Add this code to your child theme's functions.
The problem: Getting orders for a coupon. If you view your coupons under WooCommerce > Coupons, you'll see a “Usage” column for your ...
The code is used by the customer to apply the coupon and associated discount. ... that the coupon will be applied to, or that need to be in the cart in order for the ...
My finished product will be a plugin that lets us filter the “Orders” screen based on which coupon was used, of which this code is a part.
Show coupons anywhere – on cart, checkout, order confirmation page, a blog post or another ...