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.
It would be nice to see tokens like [order:mail] replaced in extra panes. Is this possible?
Or even done by some other module already?
Comment | File | Size | Author |
---|---|---|---|
#1 | 1176554-1-commerce-extra-panes-tokens.patch | 908 bytes | mr.baileys |
Comments
Comment #1
mr.baileysI agree that this would be a nice feature. My use case: I am building a really simple commerce site based on Commerce Kickstart 2.0. I'd like to use Commerce Extra Panes to replace the default checkout completion message with a more elaborate completion message that also contains payment instructions, for example:
Patch attached runs the contents of the Commerce Extra Panes checkout pane through
token_replace()
.Comment #2
pcambraThanks Ivo!
I've changed a little the code for providing more context to the tokens (node and language) and also added support for the Review pane.
It's worth to mention that as Commerce requires entity token, but there's the Token module out there that provides field integration as well and it provides better integration for fields.
Also, I didn't add UI for getting the available tokens, not sure how to solve that out, but let's keep that for a follow up.