-
Notifications
You must be signed in to change notification settings - Fork 4
/
shoppingcart-personalizer.yaml
62 lines (57 loc) · 1.75 KB
/
shoppingcart-personalizer.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
enabled: true
shop:
restrict_countries:
- '*'
placeoffer_form:
name: placeoffer
fields:
-
name: name
type: text
label: PLUGIN_SHOPPINGCART.PERSONALIZE_PLACE_OFFER_NAME
classes: placeoffer-firstname
style: vertical
validate:
required: true
-
name: email
type: email
label: PLUGIN_SHOPPINGCART.CHECKOUT_EMAIL
classes: placeoffer-email
style: vertical
validate:
required: true
-
name: message
label: PLUGIN_SHOPPINGCART.PERSONALIZE_PLACE_OFFER_MESSAGE
type: textarea
style: vertical
outerclasses: placeoffer-message
validate:
required: true
buttons:
-
type: submit
classes: btn btn-primary
outerclasses: modal-footer
value: PLUGIN_SHOPPINGCART.PERSONALIZE_PLACE_OFFER_SUBMIT
process:
-
email:
subject: '{{PLUGIN_SHOPPINGCART.PERSONALIZE_OFFER_SUBJECTID}}: [{{form.value.name|e}}] {{ form.value.subject|e }}'
body: '{% include ''forms/data.html.twig'' %}'
-
save:
fileprefix: placeoffer-
dateformat: Ymd-His-u
extension: txt
body: '{% include ''forms/data.txt.twig'' %}'
-
message: PLUGIN_SHOPPINGCART.PERSONALIZE_PLACE_OFFER_THANKS
personalizeorder_form:
fields:
-
type: display
name: personalize_your_products
label: PLUGIN_SHOPPINGCART.PERSONALIZE_YOUR_PRODUCTS
ignore: false