Hi Josh,
The discount code is stored in the cookie so you could have variables defined in your site script that can be cross referenced to apply a discount. It does mean you would need to define your codes twice but it’s better than not having the functionality at all.
You would still need to use the link that Lukasz pointed out above so that the code was stored in the first place, and it means you would need an obvisous notice so that users know why the store prices are changing in front of them.
As far as I’m aware there isn’t a way to do this through liquid.
If you need a hand with implementation I’m available through elliot@mandelbrotian.com
Cheers,
Elliott