When discount codes are active in Easy Digital Downloads, a link appears at checkout, enabling customers to enter a discount code by clicking the “Click to enter it” link. What if you’d like to show this field without requiring any additional clicks? Copy and paste the code snippet below into your child theme or plugin.

The standard discount link
The standard discount link
The discount field show by default
The discount field show by default

For EDD 2.0+

 

For EDD 1.9 and below

2 comments

  1. Hi, thank you for this snippet! It worked for me wonderfully until the last update of EDD. Now the discount fields are hidden. I think that it has something to do with the .js part, as after reload it flashes for a milisecond and then dissapears. Are you experiencing the same issue or is it just me?

Comments are closed.