Skip to content
Advertisement

Add a column with coupons used on admin Orders list in Woocommerce

I am trying to display the coupon(s) used directly on the order admin screen (where all orders are listed in WooCommerce) but for some reason it’s giving me a fatal error because of the break.

Here is the code ->

JavaScript

Any ideas on how to fix this would be very much appreciated.

Advertisement

Answer

There is some errors and mistakes in your code… Try the following instead:

JavaScript

Code goes in functions.php file of the active child theme (or active theme). Tested and works.

(This can’t be a sortable column)

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement