Automattic / camptix

Moved to https://github.com/WordPress/wordcamp.org/
176 stars 94 forks source link

Added in an option for displaying separate checkout buttons... #193

Closed EliW closed 6 years ago

EliW commented 6 years ago

(Resubmitting this from a branch vs my master)

First of what I hope becomes many contributions to this excellent program. I'm looking to use camptix for my own events, and making some tweaks here and there that an addon can't really fix.

Here is the first one. Currently right now if you have multiple payment options (or even just one payment option), it creates a dropdown menu and a checkout button. Sometimes for better display you want to emphasize one method over another, or at least make it easy to choose one v. other. (And in the case of only 1, not have a dropdown everyone hits for no reason).

So I made an option that instead of creating a dropdown menu, makes separate buttons for each checkout method 'Checkout with Paypal' 'Checkout with Stripe', etc. Not only might this be preferrable to some. But it then allows CSS styling of each of those highly (whereas dropdown menus can't be styled that much without javascript)

EliW commented 6 years ago

The new version of camptix totally allows this to be done without a checkbox, since you have a hook you can tap into to do 'whaever you want'. Well done team. Closing this.