easy-digital-downloads
easy-digital-downloads copied to clipboard
3.0 - Add option to disable checkout descriptions
Over 5 years ago field descriptions were added to checkout: https://github.com/easydigitaldownloads/easy-digital-downloads/issues/949
I'd really like to see an option to disable them (without using CSS). I think it should be the store owner's decision as to whether they are shown or not.
Here's a link to a bunch of checkouts for other businesses: http://nicelydone.club/patterns/checkout/. You'll find field descriptions are rarely used. When they are, it's only for a field that really needs an explanation.
@pippinsplugins suggested we add an option to disable them but it looks like was never implemented: https://github.com/easydigitaldownloads/easy-digital-downloads/issues/911#issuecomment-13899950
It might be a good idea to move all the field descriptions into a dedicated function with a filter. If a store owner returns a blank array, no descriptions would be shown. This would also cut down on the number of filter calls required to disable the descriptions throughout includes/checkout/template.php
.
As an extra bonus, it would make changing the wording of the descriptions a lot easier, without having to create a translation file (in the same language) just to change the descriptions. I know I've wanted to do it before.
cc @easydigitaldownloads/core-team
I'm 100% on board with an option.
If we do add the 2nd suggestion of having the descriptions be a key value array to match up with the input name, I think we still need ot keep the old filters for a while, and just throw deprecated filter notices, telling them to upgrade to the newer single one, so those messages can be changed.
If there is one thing we learned with the nonce additions in 2.9.7, is that a lot of people do custom checkout pages for some of the smallest changes, and if we can avoid those by making things like this easier, then :+1: from me.
What about doing this in the customizer? It would be nice to move the other relevant display options there as well.
Basically add this option + what was moved in #6877.
It would also give other themes/plugins a unified place to put their store-specific customization options.
I motion to bump this to 3.1 or later, to help get 3.0 over the line.
Moved to 3.1.