Amounts options are not styled if using a Contribution Price Set
Overview
The amounts buttons, when using a Contribution Price Set, are not formatted with the radiobuttons styling.
Reproduction steps
- install and enable the radiobuttons extension
- go to Administer > Custom Data and Screens > Radiobuttons Settings
- select Yes for the Enhance the Contribution Page and Event amounts? field
- create two Contribution pages, one with a Contribution PriceSet, and the other using the quick config options on the *Amounts tab
- open either the ‘Test-drive’ or ‘Live’ of both Contribution page and note the difference in the amounts buttons
Current behaviour
When using a Contribution Price Set, the amounts options are not styled by the radiobuttons extension as expected, whereas they are styled correctly if using the quick config option.
Expected behaviour
If Enhance the Contribution Page and Event amounts? Is marked as Yes, then the extension should format the amounts buttons regardless of if the options are set via quick config or Price Set
Environment information
- Radiobuttons: 1.5
- CiviCRM: _Master/5.66.alpha1
Comments
I have a PR in the works to resolve this issue.
Edited by brienne