refactored checkout workflow with stripe
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
enabled: false
|
||||
timeout: null
|
||||
url: ''
|
||||
|
@@ -2,3 +2,4 @@ enabled: true
|
||||
timeout: 0
|
||||
_core:
|
||||
default_config_hash: Oe-fB2enOwHHacGGf5HLP31RdU9bEsQZ19YQ6AS8pjw
|
||||
url: ''
|
||||
|
@@ -1,2 +1,3 @@
|
||||
enabled: false
|
||||
timeout: null
|
||||
url: ''
|
||||
|
@@ -1,2 +1,3 @@
|
||||
enabled: false
|
||||
timeout: null
|
||||
url: ''
|
||||
|
@@ -1,2 +1,3 @@
|
||||
enabled: false
|
||||
timeout: null
|
||||
url: ''
|
||||
|
@@ -1,2 +1,3 @@
|
||||
enabled: false
|
||||
timeout: null
|
||||
url: ''
|
||||
|
@@ -2,3 +2,4 @@ enabled: true
|
||||
timeout: 0
|
||||
_core:
|
||||
default_config_hash: Oe-fB2enOwHHacGGf5HLP31RdU9bEsQZ19YQ6AS8pjw
|
||||
url: ''
|
||||
|
@@ -1,2 +1,3 @@
|
||||
enabled: false
|
||||
timeout: null
|
||||
url: ''
|
||||
|
@@ -1,2 +1,3 @@
|
||||
enabled: false
|
||||
timeout: null
|
||||
url: ''
|
||||
|
@@ -1,2 +1,3 @@
|
||||
enabled: false
|
||||
timeout: null
|
||||
url: ''
|
||||
|
@@ -15,4 +15,10 @@ langcode: fr
|
||||
_core:
|
||||
default_config_hash: m2pxH8tc4KIlh127R5TYim65W7NBY9gpYQnIXlvDp0M
|
||||
dialog_title: 'materiO’ Alert'
|
||||
no_individual_logout_threshold: false
|
||||
no_individual_logout_threshold: true
|
||||
role_logout_max: true
|
||||
inactivity_message_type: status
|
||||
disable_buttons: false
|
||||
yes_button: ''
|
||||
no_button: ''
|
||||
whitelisted_ip_addresses: ''
|
||||
|
46
config/sync/block.block.checkoutprogress.yml
Normal file
46
config/sync/block.block.checkoutprogress.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
uuid: f1f79e84-77c7-4d8a-a4b5-a8a84f380cb0
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- commerce_checkout
|
||||
- context
|
||||
- ctools
|
||||
theme:
|
||||
- materiotheme
|
||||
id: checkoutprogress
|
||||
theme: materiotheme
|
||||
region: content_top
|
||||
weight: 0
|
||||
provider: null
|
||||
plugin: commerce_checkout_progress
|
||||
settings:
|
||||
id: commerce_checkout_progress
|
||||
label: 'Checkout progress'
|
||||
provider: commerce_checkout
|
||||
label_display: '0'
|
||||
visibility:
|
||||
view_inclusion:
|
||||
id: view_inclusion
|
||||
negate: null
|
||||
view_inclusion: { }
|
||||
context_mapping: { }
|
||||
request_path_exclusion:
|
||||
id: request_path_exclusion
|
||||
pages: ''
|
||||
negate: null
|
||||
context_mapping: { }
|
||||
'entity_bundle:commerce_product_variation':
|
||||
id: 'entity_bundle:commerce_product_variation'
|
||||
bundles:
|
||||
materio_product_variation_type: materio_product_variation_type
|
||||
negate: false
|
||||
context_mapping:
|
||||
commerce_product_variation: '@commerce_product.product_variation_route_context:commerce_product_variation'
|
||||
'entity_bundle:commerce_product':
|
||||
id: 'entity_bundle:commerce_product'
|
||||
bundles:
|
||||
materio_product_type: materio_product_type
|
||||
negate: false
|
||||
context_mapping:
|
||||
commerce_product: '@commerce_product.product_route_context:commerce_product'
|
@@ -3,6 +3,7 @@ langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- context
|
||||
- user
|
||||
theme:
|
||||
- materiotheme
|
||||
@@ -23,8 +24,19 @@ visibility:
|
||||
user_role:
|
||||
id: user_role
|
||||
roles:
|
||||
authenticated: authenticated
|
||||
admin: admin
|
||||
root: root
|
||||
negate: false
|
||||
context_mapping:
|
||||
user: '@user.current_user_context:current_user'
|
||||
view_inclusion:
|
||||
id: view_inclusion
|
||||
negate: null
|
||||
view_inclusion: { }
|
||||
context_mapping: { }
|
||||
request_path_exclusion:
|
||||
id: request_path_exclusion
|
||||
pages: ''
|
||||
negate: null
|
||||
context_mapping: { }
|
||||
|
@@ -5,54 +5,60 @@ dependencies:
|
||||
module:
|
||||
- commerce_payment
|
||||
- commerce_promotion
|
||||
- commerce_stripe
|
||||
- email_registration
|
||||
id: materio_checkout_flow
|
||||
label: 'materio checkout flow'
|
||||
plugin: multistep_default
|
||||
configuration:
|
||||
display_checkout_progress: true
|
||||
display_checkout_progress_breadcrumb_links: true
|
||||
panes:
|
||||
login:
|
||||
allow_guest_checkout: true
|
||||
allow_registration: true
|
||||
step: login
|
||||
weight: 0
|
||||
email_registration_login:
|
||||
allow_guest_checkout: true
|
||||
allow_registration: true
|
||||
step: login
|
||||
weight: 1
|
||||
allow_registration: false
|
||||
step: _disabled
|
||||
weight: 8
|
||||
contact_information:
|
||||
double_entry: false
|
||||
step: order_information
|
||||
weight: 2
|
||||
weight: 0
|
||||
payment_information:
|
||||
step: order_information
|
||||
weight: 3
|
||||
weight: 1
|
||||
review:
|
||||
step: review
|
||||
weight: 4
|
||||
weight: 2
|
||||
stripe_review:
|
||||
button_id: edit-actions-next
|
||||
step: review
|
||||
weight: 3
|
||||
payment_process:
|
||||
capture: true
|
||||
step: payment
|
||||
weight: 5
|
||||
weight: 4
|
||||
completion_message:
|
||||
message:
|
||||
value: "Your order number is [commerce_order:order_number].\r\nYou can view your order on your account page when logged in."
|
||||
format: plain_text
|
||||
step: complete
|
||||
weight: 6
|
||||
completion_register:
|
||||
step: complete
|
||||
weight: 7
|
||||
weight: 5
|
||||
order_summary:
|
||||
view: commerce_checkout_order_summary
|
||||
step: _sidebar
|
||||
weight: 8
|
||||
weight: 6
|
||||
coupon_redemption:
|
||||
allow_multiple: false
|
||||
step: _sidebar
|
||||
weight: 9
|
||||
weight: 7
|
||||
email_registration_completion_registration:
|
||||
step: _disabled
|
||||
weight: 9
|
||||
completion_register:
|
||||
step: _disabled
|
||||
weight: 10
|
||||
login:
|
||||
allow_guest_checkout: true
|
||||
allow_registration: false
|
||||
step: _disabled
|
||||
weight: 11
|
||||
|
@@ -1,21 +1,22 @@
|
||||
uuid: 9fd9ac25-5b14-4630-a056-546da6b3b418
|
||||
langcode: en
|
||||
status: true
|
||||
status: false
|
||||
dependencies:
|
||||
module:
|
||||
- commerce_cmcic
|
||||
id: cm_cic
|
||||
label: CM-CIC
|
||||
weight: null
|
||||
label: CIC-CM
|
||||
weight: -10
|
||||
plugin: commerce_cmcic
|
||||
configuration:
|
||||
display_label: CM-CIC
|
||||
display_label: 'Credit Card via CIC-CM'
|
||||
mode: test
|
||||
payment_method_types:
|
||||
- credit_card
|
||||
bank_type: cic
|
||||
collect_billing_information: true
|
||||
bank_type: monetico
|
||||
version: '3.0'
|
||||
security_key: 7C86189FA72DA637A722BB395BFB9D403D3C70P7
|
||||
security_key: 7C86189FA72DA637A722BB395BFB9D403D3C7097
|
||||
tpe: '6277685'
|
||||
company: materio
|
||||
conditions: { }
|
||||
|
@@ -0,0 +1,20 @@
|
||||
uuid: e41e2a00-d6e1-4a9b-add4-058e4fbde0d2
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- commerce_stripe
|
||||
id: stripe
|
||||
label: Stripe
|
||||
weight: -10
|
||||
plugin: stripe
|
||||
configuration:
|
||||
publishable_key: pk_test_51I7RAuBp8BkjanLQtX3lktLLC3PIOkzKVqPqijC9GZz1XD2PHLZHEQOSJzjVnvxO2aMuk0mQybVZnNnLsJDSWMP800VENEIUqZ
|
||||
secret_key: sk_test_51I7RAuBp8BkjanLQSwUpyIDFUwvWgXjsJZHI5HAcZK9XCe3Gw1BuhxvvgZccv5Feb6jAo8ZskId2K5Oy4IIUsOQP00Mb4LdMfO
|
||||
display_label: Stripe
|
||||
mode: test
|
||||
payment_method_types:
|
||||
- credit_card
|
||||
collect_billing_information: true
|
||||
conditions: { }
|
||||
conditionOperator: AND
|
@@ -1,4 +0,0 @@
|
||||
site_uuid_override: '0'
|
||||
help_menu_disabled: false
|
||||
_core:
|
||||
default_config_hash: WvXLN1x52wMWWAMFc8gpSuFK5mrsLBp4e1pRR2-M08k
|
@@ -1,3 +0,0 @@
|
||||
content_sync:
|
||||
site_uuid_override: 0
|
||||
help_menu_disabled: true
|
@@ -6,6 +6,7 @@ dependencies:
|
||||
- commerce_order.commerce_order_type.default
|
||||
module:
|
||||
- commerce_order
|
||||
- commerce_price
|
||||
- state_machine
|
||||
- user
|
||||
_core:
|
||||
@@ -15,6 +16,15 @@ targetEntityType: commerce_order
|
||||
bundle: default
|
||||
mode: default
|
||||
content:
|
||||
balance:
|
||||
type: commerce_price_default
|
||||
label: inline
|
||||
weight: 9
|
||||
settings:
|
||||
strip_trailing_zeroes: false
|
||||
currency_display: symbol
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
changed:
|
||||
type: timestamp
|
||||
weight: 4
|
||||
@@ -91,5 +101,6 @@ content:
|
||||
hidden:
|
||||
billing_profile: true
|
||||
order_number: true
|
||||
search_api_excerpt: true
|
||||
store_id: true
|
||||
total_paid: true
|
||||
|
@@ -15,6 +15,15 @@ targetEntityType: commerce_order
|
||||
bundle: materio_order_type
|
||||
mode: default
|
||||
content:
|
||||
balance:
|
||||
type: commerce_price_default
|
||||
label: inline
|
||||
weight: 12
|
||||
settings:
|
||||
strip_trailing_zeroes: false
|
||||
currency_display: symbol
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
billing_profile:
|
||||
type: entity_reference_revisions_entity_view
|
||||
weight: 10
|
||||
|
@@ -8,6 +8,7 @@ dependencies:
|
||||
- field.field.commerce_order.recurring.billing_schedule
|
||||
module:
|
||||
- commerce_order
|
||||
- commerce_price
|
||||
- commerce_recurring
|
||||
- state_machine
|
||||
- user
|
||||
@@ -18,6 +19,15 @@ targetEntityType: commerce_order
|
||||
bundle: recurring
|
||||
mode: default
|
||||
content:
|
||||
balance:
|
||||
type: commerce_price_default
|
||||
label: inline
|
||||
weight: 10
|
||||
settings:
|
||||
strip_trailing_zeroes: false
|
||||
currency_display: symbol
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
billing_period:
|
||||
type: commerce_billing_period_default
|
||||
weight: 0
|
||||
@@ -102,5 +112,6 @@ hidden:
|
||||
billing_profile: true
|
||||
billing_schedule: true
|
||||
order_number: true
|
||||
search_api_excerpt: true
|
||||
store_id: true
|
||||
total_paid: true
|
||||
|
@@ -0,0 +1,39 @@
|
||||
uuid: 52c3ccdf-4fb5-4c18-bc17-bf6d0129bd7e
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- commerce_product.commerce_product_type.materio_product_type
|
||||
- core.entity_view_mode.commerce_product.home_summary
|
||||
- field.field.commerce_product.materio_product_type.body
|
||||
- field.field.commerce_product.materio_product_type.field_price_description
|
||||
module:
|
||||
- text
|
||||
id: commerce_product.materio_product_type.home_summary
|
||||
targetEntityType: commerce_product
|
||||
bundle: materio_product_type
|
||||
mode: home_summary
|
||||
content:
|
||||
body:
|
||||
type: text_default
|
||||
weight: 1
|
||||
region: content
|
||||
label: hidden
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
title:
|
||||
type: string
|
||||
weight: 0
|
||||
region: content
|
||||
label: hidden
|
||||
settings:
|
||||
link_to_entity: false
|
||||
third_party_settings: { }
|
||||
hidden:
|
||||
created: true
|
||||
field_price_description: true
|
||||
langcode: true
|
||||
search_api_excerpt: true
|
||||
stores: true
|
||||
uid: true
|
||||
variations: true
|
@@ -255,7 +255,7 @@ content:
|
||||
weight: 6
|
||||
region: content
|
||||
settings:
|
||||
view_mode: summary
|
||||
view_mode: home_summary
|
||||
link: false
|
||||
third_party_settings: { }
|
||||
type: entity_reference_entity_view
|
||||
|
@@ -0,0 +1,10 @@
|
||||
uuid: 42591e4f-3a62-4225-b025-f4436508aeb9
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- commerce_product
|
||||
id: commerce_product.home_summary
|
||||
label: 'Home summary'
|
||||
targetEntityType: commerce_product
|
||||
cache: true
|
@@ -36,6 +36,7 @@ module:
|
||||
commerce_promotion: 0
|
||||
commerce_recurring: 0
|
||||
commerce_store: 0
|
||||
commerce_stripe: 0
|
||||
commerce_tax: 0
|
||||
commerce_variation_cart_form: 0
|
||||
computed_field: 0
|
||||
@@ -50,12 +51,12 @@ module:
|
||||
contact: 0
|
||||
content_lock: 0
|
||||
content_lock_timeout: 0
|
||||
content_sync: 0
|
||||
context: 0
|
||||
contextual: 0
|
||||
cshs: 0
|
||||
ctools: 0
|
||||
ctools_block: 0
|
||||
currency: 0
|
||||
date_range_formatter: 0
|
||||
datetime: 0
|
||||
datetime_range: 0
|
||||
@@ -141,6 +142,7 @@ module:
|
||||
pathologic: 0
|
||||
permissions_filter: 0
|
||||
persistent_login: 0
|
||||
plugin: 0
|
||||
profile: 0
|
||||
recurring_period: 0
|
||||
redirect: 0
|
||||
|
3
config/sync/currency.amount_formatting.yml
Normal file
3
config/sync/currency.amount_formatting.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
plugin_id: currency_basic
|
||||
_core:
|
||||
default_config_hash: KxmQKHtm7y2OHcdp0pt27aKtDrezgRSJCsXQ0fFQ-Sg
|
22
config/sync/currency.currency.XXX.yml
Normal file
22
config/sync/currency.currency.XXX.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
uuid: cde6b53b-b481-4c4f-b182-673281e65b9a
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
_core:
|
||||
default_config_hash: Z1YlONWzZZRT4LTq7RYN4hf3MEcT160wbomEsxLoPZ8
|
||||
alternativeSigns: { }
|
||||
currencyCode: XXX
|
||||
currencyNumber: '999'
|
||||
label: 'No currency'
|
||||
roundingStep: null
|
||||
sign: ¤
|
||||
subunits: 0
|
||||
usages:
|
||||
-
|
||||
start: ''
|
||||
end: ''
|
||||
countryCode: AQ
|
||||
-
|
||||
start: ''
|
||||
end: ''
|
||||
countryCode: ZZ
|
10
config/sync/currency.currency_locale.en_US.yml
Normal file
10
config/sync/currency.currency_locale.en_US.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
uuid: 451e712c-eec9-4a60-9402-d17b1619ee2e
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
_core:
|
||||
default_config_hash: nAygxNkoV-dysf09n8eaT2MeULBzTisuxlMqdXEJbr8
|
||||
decimalSeparator: .
|
||||
groupingSeparator: ','
|
||||
locale: en_US
|
||||
pattern: '¤#,##0.00;(¤#,##0.00)'
|
9
config/sync/currency.exchange_rate_provider.yml
Normal file
9
config/sync/currency.exchange_rate_provider.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
plugins:
|
||||
-
|
||||
plugin_id: currency_fixed_rates
|
||||
status: true
|
||||
-
|
||||
plugin_id: currency_historical_rates
|
||||
status: true
|
||||
_core:
|
||||
default_config_hash: TrKWV8zxs3oIJUC4bRlCJZrOFimdU4FgrGrFusfxJME
|
3
config/sync/currency.exchanger.fixed_rates.yml
Normal file
3
config/sync/currency.exchanger.fixed_rates.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
rates: { }
|
||||
_core:
|
||||
default_config_hash: wgwYiaurYzrbMFP3CJz93tXZV-PTtGq_G0GLCXZ_VH8
|
@@ -1 +0,0 @@
|
||||
label: Bloc
|
@@ -14,6 +14,7 @@ dependencies:
|
||||
- profile
|
||||
- state_machine
|
||||
- user
|
||||
- views_bulk_operations
|
||||
_core:
|
||||
default_config_hash: qDJpXJ_8FkzPY58X9u7E69YkFZTYVb-pIw1qMrHC6yk
|
||||
id: commerce_licenses
|
||||
@@ -242,6 +243,64 @@ display:
|
||||
row:
|
||||
type: fields
|
||||
fields:
|
||||
views_bulk_operations_bulk_form:
|
||||
id: views_bulk_operations_bulk_form
|
||||
table: views
|
||||
field: views_bulk_operations_bulk_form
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
label: 'Views bulk operations'
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: true
|
||||
ellipsis: true
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: true
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
batch: true
|
||||
batch_size: 10
|
||||
form_step: true
|
||||
buttons: false
|
||||
clear_on_exposed: true
|
||||
action_title: Action
|
||||
selected_actions:
|
||||
2:
|
||||
action_id: views_bulk_operations_delete_entity
|
||||
plugin_id: views_bulk_operations_bulk_form
|
||||
license_id:
|
||||
id: license_id
|
||||
table: commerce_license
|
||||
@@ -1624,7 +1683,7 @@ display:
|
||||
display_extenders:
|
||||
views_ef_fieldset: { }
|
||||
cache_metadata:
|
||||
max-age: -1
|
||||
max-age: 0
|
||||
contexts:
|
||||
- 'languages:language_content'
|
||||
- 'languages:language_interface'
|
||||
@@ -1644,7 +1703,7 @@ display:
|
||||
views_ef_fieldset: { }
|
||||
path: admin/commerce/licenses
|
||||
cache_metadata:
|
||||
max-age: -1
|
||||
max-age: 0
|
||||
contexts:
|
||||
- 'languages:language_content'
|
||||
- 'languages:language_interface'
|
||||
|
Reference in New Issue
Block a user