added terms of services
This commit is contained in:
@@ -7,6 +7,7 @@ dependencies:
|
||||
- commerce_promotion
|
||||
- commerce_stripe
|
||||
- email_registration
|
||||
- materio_commerce
|
||||
id: materio_checkout_flow
|
||||
label: 'materio checkout flow'
|
||||
plugin: multistep_default
|
||||
@@ -23,44 +24,55 @@ configuration:
|
||||
payment_information:
|
||||
step: order_information
|
||||
weight: 1
|
||||
materio_commerce_agree_terms:
|
||||
path:
|
||||
route_name: materio_commerce.terms_viewer
|
||||
route_parameters: { }
|
||||
link_text: 'Terms and Conditions'
|
||||
prefix_text: 'I agree with the %terms'
|
||||
invalid_text: 'You must agree with the %terms before continuing'
|
||||
new_window: '1'
|
||||
step: order_information
|
||||
weight: 2
|
||||
nid: '1'
|
||||
review:
|
||||
step: review
|
||||
weight: 2
|
||||
weight: 3
|
||||
stripe_review:
|
||||
button_id: edit-actions-next
|
||||
step: review
|
||||
weight: 3
|
||||
weight: 4
|
||||
payment_process:
|
||||
capture: true
|
||||
step: payment
|
||||
weight: 4
|
||||
weight: 5
|
||||
completion_message:
|
||||
message:
|
||||
value: "<p class=\"welcom\">[current-user:customer:address:given_name] [current-user:customer:address:family_name] thank you and welcome to <strong>[site:name]</strong>!</p>\r\n\r\n<p class=\"base\">You now have full access to our <a href=\"/base\">8000+ materials</a></p>\r\n\r\n<p class=\"order\"> </p>\r\n"
|
||||
format: wysiwyg
|
||||
step: complete
|
||||
weight: 5
|
||||
weight: 6
|
||||
order_summary:
|
||||
view: commerce_checkout_order_summary
|
||||
step: _sidebar
|
||||
weight: 6
|
||||
weight: 7
|
||||
coupon_redemption:
|
||||
allow_multiple: false
|
||||
step: _sidebar
|
||||
weight: 7
|
||||
weight: 8
|
||||
email_registration_login:
|
||||
allow_guest_checkout: true
|
||||
allow_registration: false
|
||||
step: _disabled
|
||||
weight: 8
|
||||
weight: 10
|
||||
email_registration_completion_registration:
|
||||
step: _disabled
|
||||
weight: 9
|
||||
weight: 11
|
||||
completion_register:
|
||||
step: _disabled
|
||||
weight: 10
|
||||
weight: 12
|
||||
login:
|
||||
allow_guest_checkout: true
|
||||
allow_registration: false
|
||||
step: _disabled
|
||||
weight: 11
|
||||
weight: 13
|
||||
|
17
config/sync/config_pages.type.terms_of_services.yml
Normal file
17
config/sync/config_pages.type.terms_of_services.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
uuid: 689d8780-02a4-4787-bf07-ab36c5ff7454
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: terms_of_services
|
||||
label: 'Terms of services'
|
||||
context:
|
||||
show_warning: true
|
||||
group:
|
||||
language: true
|
||||
fallback:
|
||||
language: ''
|
||||
menu:
|
||||
path: /admin/content/tos
|
||||
weight: 0
|
||||
description: ''
|
||||
token: false
|
@@ -0,0 +1,33 @@
|
||||
uuid: 37d76e44-2b2f-4519-bf47-408fd73ceb04
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- config_pages.type.terms_of_services
|
||||
- field.field.config_pages.terms_of_services.field_body
|
||||
- field.field.config_pages.terms_of_services.field_title
|
||||
module:
|
||||
- text
|
||||
id: config_pages.terms_of_services.default
|
||||
targetEntityType: config_pages
|
||||
bundle: terms_of_services
|
||||
mode: default
|
||||
content:
|
||||
field_body:
|
||||
weight: 1
|
||||
settings:
|
||||
rows: 5
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
type: text_textarea
|
||||
region: content
|
||||
field_title:
|
||||
weight: 0
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
type: string_textfield
|
||||
region: content
|
||||
hidden:
|
||||
label: true
|
@@ -0,0 +1,25 @@
|
||||
uuid: 50e2e477-ed96-4949-8583-cd9abc1aa05a
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- config_pages.type.terms_of_services
|
||||
- field.field.config_pages.terms_of_services.field_body
|
||||
- field.field.config_pages.terms_of_services.field_title
|
||||
module:
|
||||
- text
|
||||
id: config_pages.terms_of_services.default
|
||||
targetEntityType: config_pages
|
||||
bundle: terms_of_services
|
||||
mode: default
|
||||
content:
|
||||
field_body:
|
||||
weight: 0
|
||||
label: hidden
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
type: text_default
|
||||
region: content
|
||||
hidden:
|
||||
field_title: true
|
||||
search_api_excerpt: true
|
@@ -0,0 +1,33 @@
|
||||
uuid: 0ae78753-31b9-41bf-bcaa-e269fd835be1
|
||||
langcode: en
|
||||
status: false
|
||||
dependencies:
|
||||
config:
|
||||
- config_pages.type.terms_of_services
|
||||
- core.entity_view_mode.config_pages.full
|
||||
- field.field.config_pages.terms_of_services.field_body
|
||||
- field.field.config_pages.terms_of_services.field_title
|
||||
module:
|
||||
- text
|
||||
id: config_pages.terms_of_services.full
|
||||
targetEntityType: config_pages
|
||||
bundle: terms_of_services
|
||||
mode: full
|
||||
content:
|
||||
field_body:
|
||||
weight: 1
|
||||
label: hidden
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
type: text_default
|
||||
region: content
|
||||
field_title:
|
||||
weight: 0
|
||||
label: hidden
|
||||
settings:
|
||||
link_to_entity: false
|
||||
third_party_settings: { }
|
||||
type: string
|
||||
region: content
|
||||
hidden:
|
||||
search_api_excerpt: true
|
12
config/sync/core.entity_view_mode.config_pages.full.yml
Normal file
12
config/sync/core.entity_view_mode.config_pages.full.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
uuid: ff6b374f-0a7e-4fb5-a40c-8642053df484
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- config_pages
|
||||
_core:
|
||||
default_config_hash: VYERDzPNi1-oUm7KMLjol4oLcjbHr-onKbitt4dZuN0
|
||||
id: config_pages.full
|
||||
label: Full
|
||||
targetEntityType: config_pages
|
||||
cache: true
|
@@ -43,6 +43,7 @@ module:
|
||||
config: 0
|
||||
config_filter: 0
|
||||
config_ignore: 0
|
||||
config_pages: 0
|
||||
config_split: 0
|
||||
config_translation: 0
|
||||
config_update: 0
|
||||
@@ -111,6 +112,7 @@ module:
|
||||
mailgun: 0
|
||||
maillog: 0
|
||||
mailsystem: 0
|
||||
materio_commerce: 0
|
||||
materio_decoupled: 0
|
||||
materio_flag: 0
|
||||
materio_graphql: 0
|
||||
@@ -170,6 +172,7 @@ module:
|
||||
state_machine: 0
|
||||
string_translation_ui: 0
|
||||
strings_i18n_json_export: 0
|
||||
structure_sync: 0
|
||||
synonyms: 0
|
||||
syslog: 0
|
||||
system: 0
|
||||
|
@@ -0,0 +1,26 @@
|
||||
uuid: d890c8c1-7fbd-420d-9039-77d8445e024d
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- config_pages.type.terms_of_services
|
||||
- field.storage.config_pages.field_body
|
||||
module:
|
||||
- text
|
||||
- unique_content_field_validation
|
||||
third_party_settings:
|
||||
unique_content_field_validation:
|
||||
unique: false
|
||||
unique_text: ''
|
||||
id: config_pages.terms_of_services.field_body
|
||||
field_name: field_body
|
||||
entity_type: config_pages
|
||||
bundle: terms_of_services
|
||||
label: Body
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: text_long
|
@@ -0,0 +1,25 @@
|
||||
uuid: 9d4ede0c-a9e6-47b5-8f54-070eb262d7a0
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- config_pages.type.terms_of_services
|
||||
- field.storage.config_pages.field_title
|
||||
module:
|
||||
- unique_content_field_validation
|
||||
third_party_settings:
|
||||
unique_content_field_validation:
|
||||
unique: false
|
||||
unique_text: ''
|
||||
id: config_pages.terms_of_services.field_title
|
||||
field_name: field_title
|
||||
entity_type: config_pages
|
||||
bundle: terms_of_services
|
||||
label: Title
|
||||
description: ''
|
||||
required: true
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: string
|
23
config/sync/field.storage.config_pages.field_body.yml
Normal file
23
config/sync/field.storage.config_pages.field_body.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
uuid: ab37dccc-ec5e-46b4-b2a7-5eeee0787968
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- config_pages
|
||||
- field_permissions
|
||||
- text
|
||||
third_party_settings:
|
||||
field_permissions:
|
||||
permission_type: public
|
||||
id: config_pages.field_body
|
||||
field_name: field_body
|
||||
entity_type: config_pages
|
||||
type: text_long
|
||||
settings: { }
|
||||
module: text
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
25
config/sync/field.storage.config_pages.field_title.yml
Normal file
25
config/sync/field.storage.config_pages.field_title.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
uuid: 86a82680-7c48-4d42-a9cb-991a7803e6d9
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- config_pages
|
||||
- field_permissions
|
||||
third_party_settings:
|
||||
field_permissions:
|
||||
permission_type: public
|
||||
id: config_pages.field_title
|
||||
field_name: field_title
|
||||
entity_type: config_pages
|
||||
type: string
|
||||
settings:
|
||||
max_length: 255
|
||||
is_ascii: false
|
||||
case_sensitive: false
|
||||
module: core
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
@@ -0,0 +1 @@
|
||||
label: Complet
|
61
config/sync/structure_sync.data.yml
Normal file
61
config/sync/structure_sync.data.yml
Normal file
@@ -0,0 +1,61 @@
|
||||
menus:
|
||||
-
|
||||
menu_name: editors
|
||||
title: Thematiques
|
||||
parent: editors_menus.contents
|
||||
uri: 'internal:/admin/content/thematiques'
|
||||
link_title: ''
|
||||
description: null
|
||||
enabled: '1'
|
||||
expanded: '0'
|
||||
weight: '-48'
|
||||
langcode: en
|
||||
uuid: bc70db0f-78a3-4957-8730-5523192830d7
|
||||
-
|
||||
menu_name: editors
|
||||
title: 'Interface Translation'
|
||||
parent: null
|
||||
uri: 'internal:/admin/config/regional/translate'
|
||||
link_title: ''
|
||||
description: null
|
||||
enabled: '1'
|
||||
expanded: '0'
|
||||
weight: '0'
|
||||
langcode: en
|
||||
uuid: 91e07677-0035-4e5a-8bdd-cfb52c1da4f8
|
||||
-
|
||||
menu_name: editors
|
||||
title: 'Home page'
|
||||
parent: editors_menus.contents
|
||||
uri: 'internal:/node/1/edit'
|
||||
link_title: ''
|
||||
description: null
|
||||
enabled: '1'
|
||||
expanded: '0'
|
||||
weight: '-50'
|
||||
langcode: en
|
||||
uuid: af51f6df-dbce-4e35-b4bc-7ef21314110b
|
||||
-
|
||||
menu_name: editors
|
||||
title: Products
|
||||
parent: editors_menus.commerce
|
||||
uri: 'internal:/admin/commerce/products'
|
||||
link_title: ''
|
||||
description: null
|
||||
enabled: '1'
|
||||
expanded: '0'
|
||||
weight: '0'
|
||||
langcode: en
|
||||
uuid: 27e5f4e1-1ea7-425e-aabb-81404d40a864
|
||||
-
|
||||
menu_name: editors
|
||||
title: 'Terms of services'
|
||||
parent: null
|
||||
uri: 'internal:/admin/content/tos'
|
||||
link_title: ''
|
||||
description: null
|
||||
enabled: '1'
|
||||
expanded: '0'
|
||||
weight: '0'
|
||||
langcode: en
|
||||
uuid: b8ad0bb1-69f4-44ff-9ab3-20e9d9ae1ee9
|
@@ -102,6 +102,7 @@ permissions:
|
||||
- 'edit terms in showroom'
|
||||
- 'edit terms in tags'
|
||||
- 'edit terms in thesaurus'
|
||||
- 'edit terms_of_services config page entity'
|
||||
- 'execute entity:save_action menu_link_content'
|
||||
- 'execute entity:save_action node'
|
||||
- 'execute entity:save_action taxonomy_term'
|
||||
|
@@ -31,4 +31,5 @@ permissions:
|
||||
- 'view commerce_product'
|
||||
- 'view published fil entities'
|
||||
- 'view search api pages'
|
||||
- 'view terms_of_services config page entity'
|
||||
- 'view webprofiler toolbar'
|
||||
|
@@ -45,4 +45,5 @@ permissions:
|
||||
- 'view published composition entities'
|
||||
- 'view published fil entities'
|
||||
- 'view search api pages'
|
||||
- 'view terms_of_services config page entity'
|
||||
- 'view webprofiler toolbar'
|
||||
|
Reference in New Issue
Block a user