amnestywebsite / humanity-theme

The Amnesty International WordPress Humanity Theme
https://wordpresstheme.amnesty.org/
Other
37 stars 9 forks source link

Epic - Open Source - Theme to be plugin agnostic #127

Open AmnestyAM opened 7 months ago

AmnestyAM commented 7 months ago

Sprints allocated

Number of sprints: 1 Link to sprint if known: TBC

Goals

Think about (optional)

jffng commented 2 months ago

There are many templates, partials, and functions specific to WooCommerce. Should those be moved to the plugin also?

AmnestyAM commented 2 months ago

Hi @jffng My guess is the Woo related files might end up here https://github.com/amnestywebsite/humanity-donations @jaymcp will let me know if I am wrong here.

jaymcp commented 2 months ago

Some could certainly be moved to Donations, but I'm not sure about the template overrides. I'll have to see whether I can hook into WC's template loading to allow templates/parts to be loaded from a plugin. It's definitely worth investigating, though.

jaymcp commented 2 months ago

I've done some investigation into what it would take to migrate our options away from CMB2.

Generally, it's going to be less troublesome than I first thought, as most of our options are text-based fields. However, there are some considerations to be made around user experience.

For example, we will have to allow the user to (in some cases):

The UX for these sorts of fields will need some thought in order to provide the user with a similar or better experience than we currently have using CMB2.

Additionally, WP 6.5 introduces the "Block Bindings API", which will allow us to provide data to blocks directly, which could further enhance the UX for certain data.