Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
From #2915585: Create a Twig template for the payment gateway form.
Right now we have no way to theme checkout panes. There should be "commerce_checkout_pane", "commerce_checkout_pane_PLUGIN_ID" theme hook and then Payment alters it to have the additional suggestions on operation and plugin ID.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2951353-3.patch | 2.21 KB | mglaman |
| |||
#2 | 2951353-2.patch | 2.02 KB | mglaman |
Comments
Comment #2
mglamanThis causes panes to have no output. Need preprocess to fix "content." Ending sprint for the day.
Comment #3
mglamanToday I, shamefully, learned "render element" defines the main variable for all renderables!
Theme debug output from patch
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedThanks, this works fine!
Added an explicit #pane_id and used it in the suggestion hook, to allow checkout flows to add panes under a different parent (due to accordions, for example).