For one of my WooCommerce websites, I created a custom order review table and as part of that I wanted any coupon codes to always be shown in uppercase no matter how they were typed by the user.

To achieve this, it was super simple, a couple of lines of code added to your functions.php file and voilà you can see below how the coupon code is shown in uppercase.

WooCommerce order review table

To make this work, you’ll need to add the code below to your functions.php file – remember, before you make any changes be sure to backup your website.

Was this article helpful?
YesNo