From 10d76df4dce77415be17de8609f5576512e4d88f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Thu, 18 Jun 2020 11:45:51 -0400 Subject: [PATCH] Update migrate api payment webform --- ....webform.purchase_training_migrate_api.yml | 31 ++++++++++++------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/config/sync/webform.webform.purchase_training_migrate_api.yml b/config/sync/webform.webform.purchase_training_migrate_api.yml index b5d23f3..43945e8 100644 --- a/config/sync/webform.webform.purchase_training_migrate_api.yml +++ b/config/sync/webform.webform.purchase_training_migrate_api.yml @@ -17,17 +17,18 @@ category: Purchase elements: | course_summary: '#type': processed_text - '#text': | - ## Upgrading to Drupal 9 using the Migrate API - + '#display_on': both + '#text': |2 * Lead instructor: **Mauricio Dinarte** - * Date: **2020 July 17** + * Date: **2020 July 23, Thursday** + * Time: **9am–5pm Eastern** * Cost: **$500** '#format': markdown name: '#type': textfield '#title': Name + '#required': true email: '#type': email '#title': E-mail @@ -47,7 +48,7 @@ elements: | actions: '#type': webform_actions '#title': 'Submit button(s)' - '#submit__label': Purchase + '#submit__label': 'Purchase ticket' css: '' javascript: '' settings: @@ -233,8 +234,8 @@ handlers: plan_id: '' quantity: '' currency: usd - description: '' - email: '' + description: '[webform:title]' + email: '[webform_submission:values:email]' metadata: '' stripe_customer_create: '' stripe_charge_create: '' @@ -258,14 +259,22 @@ handlers: from_mail: _default from_options: { } from_name: _default - subject: 'Training registration for [source-title]' + subject: 'Training registration for [webform:title]' body: | + Dear [webform_submission:values:name],
+
Thank you for registering!

- [webform_submission:values]
-   + [webform_submission:values:course_summary:html]
+
+ Connection information for joining the training online will be sent prior to the event.
+
+ Best,
+
+ Mauricio Dinarte and the team at Agaric excluded_elements: - payment_information: payment_information + course_summary: course_summary + payment: payment optional_info_for_your_receipt: optional_info_for_your_receipt ignore_access: false exclude_empty: true