Make the coupon field conditional

Only show the coupon field if an actual coupon has been created.

see here…

1 Like

Yes, the obvious workaround is always to hide things with CSS, but not ideal, especially when it comes to a payment form where security and validation is concerned. The coupon field is innocuous enough I’m sure, but hiding other fields could be disastrous (worth mentioning in case anyone decides hiding form fields in general like this is safe — it’s definitely not).

Also, just a quick FYI that that code is dated cause the class changed. Use this instead in the meantime:

.discourse-subscriptions-section-columns .subscribe-promo-code {
	display: none;
}