upgraded commerce to 3

This commit is contained in:
2026-09-22 22:12:53 +02:00
parent b11afd5fb1
commit 67a4f7c52f
15 changed files with 781 additions and 63 deletions
@@ -9,6 +9,7 @@ label: Default
traits: { }
locked: false
description: ''
variationType: default
variationTypes:
- default
multipleVariations: true
injectVariationFields: true
@@ -7,7 +7,6 @@ label: 'materio product license type'
traits: { }
locked: false
description: ''
variationType: materio_product_licence_variatio
variationTypes:
- materio_product_licence_variatio
- materio_product_variation_type
@@ -7,7 +7,6 @@ label: 'materio product type (do not use me)'
traits: { }
locked: false
description: ''
variationType: materio_product_variation_type
variationTypes:
- materio_product_variation_type
multipleVariations: true
@@ -0,0 +1,42 @@
uuid: 2b403847-7b59-41ca-82be-b3f67400de56
langcode: en
status: true
dependencies:
config:
- commerce_order.commerce_order_type.default
- core.entity_form_mode.commerce_order.order_details
- field.field.commerce_order.default.field_mailjet_campaign_id
- field.field.commerce_order.default.field_mailjet_campaign_name
id: commerce_order.default.order_details
targetEntityType: commerce_order
bundle: default
mode: order_details
content:
cart:
type: boolean_checkbox
weight: 20
region: content
settings:
display_label: true
third_party_settings: { }
mail:
type: email_default
weight: 0
region: content
settings:
placeholder: ''
size: 60
third_party_settings: { }
hidden:
adjustments: true
billing_profile: true
coupons: true
customer_comments: true
field_mailjet_campaign_id: true
field_mailjet_campaign_name: true
ip_address: true
order_items: true
order_number: true
state: true
store_id: true
uid: true
@@ -0,0 +1,42 @@
uuid: 723bb5e2-9d1d-4ea0-935f-c580f95cad97
langcode: en
status: true
dependencies:
config:
- commerce_order.commerce_order_type.materio_order_type
- core.entity_form_mode.commerce_order.order_details
- field.field.commerce_order.materio_order_type.field_mailjet_campaign_id
- field.field.commerce_order.materio_order_type.field_mailjet_campaign_name
id: commerce_order.materio_order_type.order_details
targetEntityType: commerce_order
bundle: materio_order_type
mode: order_details
content:
cart:
type: boolean_checkbox
weight: 20
region: content
settings:
display_label: true
third_party_settings: { }
mail:
type: email_default
weight: 0
region: content
settings:
placeholder: ''
size: 60
third_party_settings: { }
hidden:
adjustments: true
billing_profile: true
coupons: true
customer_comments: true
field_mailjet_campaign_id: true
field_mailjet_campaign_name: true
ip_address: true
order_items: true
order_number: true
state: true
store_id: true
uid: true
@@ -0,0 +1,46 @@
uuid: c59d7522-2280-4e5a-af0d-1da40b84af67
langcode: en
status: true
dependencies:
config:
- commerce_order.commerce_order_type.recurring
- core.entity_form_mode.commerce_order.order_details
- field.field.commerce_order.recurring.billing_period
- field.field.commerce_order.recurring.billing_schedule
- field.field.commerce_order.recurring.commerce_recurring_queued
- field.field.commerce_order.recurring.field_mailjet_campaign_id
id: commerce_order.recurring.order_details
targetEntityType: commerce_order
bundle: recurring
mode: order_details
content:
cart:
type: boolean_checkbox
weight: 20
region: content
settings:
display_label: true
third_party_settings: { }
mail:
type: email_default
weight: 0
region: content
settings:
placeholder: ''
size: 60
third_party_settings: { }
hidden:
adjustments: true
billing_period: true
billing_profile: true
billing_schedule: true
commerce_recurring_queued: true
coupons: true
customer_comments: true
field_mailjet_campaign_id: true
ip_address: true
order_items: true
order_number: true
state: true
store_id: true
uid: true
@@ -0,0 +1,11 @@
uuid: 1819ec5f-7afb-4e5e-a485-4d253a770a45
langcode: en
status: true
dependencies:
module:
- commerce_order
id: commerce_order.order_details
label: 'Order details'
description: ''
targetEntityType: commerce_order
cache: true
@@ -8,6 +8,7 @@ dependencies:
- field.field.commerce_order.default.field_mailjet_campaign_name
module:
- commerce_order
- commerce_payment
- commerce_price
- state_machine
- user
@@ -27,6 +28,15 @@ content:
third_party_settings: { }
weight: 9
region: content
billing_profile:
type: commerce_billing_information
label: hidden
settings:
profile_view_mode: admin
show_payment_information: true
third_party_settings: { }
weight: 5
region: content
changed:
type: timestamp
label: inline
@@ -73,6 +83,25 @@ content:
third_party_settings: { }
weight: 10
region: content
created:
type: timestamp
label: inline
settings:
date_format: short
custom_date_format: ''
timezone: ''
tooltip:
date_format: long
custom_date_format: ''
time_diff:
enabled: false
future_format: '@interval hence'
past_format: '@interval ago'
granularity: 2
refresh: 60
third_party_settings: { }
weight: 0
region: content
customer_comments:
type: string
label: above
@@ -99,9 +128,11 @@ content:
order_items:
type: commerce_order_item_table
label: hidden
settings: { }
settings:
view: commerce_order_item_table_admin
show_add_items_link: true
third_party_settings: { }
weight: 0
weight: 13
region: content
placed:
type: timestamp
@@ -129,13 +160,6 @@ content:
third_party_settings: { }
weight: 8
region: content
total_price:
type: commerce_order_total_summary
label: hidden
settings: { }
third_party_settings: { }
weight: 1
region: content
uid:
type: author
label: inline
@@ -144,7 +168,7 @@ content:
weight: 5
region: content
hidden:
billing_profile: true
commerce_activity_log: true
field_mailjet_campaign_id: true
field_mailjet_campaign_name: true
order_number: true
@@ -152,3 +176,4 @@ hidden:
store_id: true
synonyms: true
total_paid: true
total_price: true
@@ -8,8 +8,8 @@ dependencies:
- field.field.commerce_order.materio_order_type.field_mailjet_campaign_name
module:
- commerce_order
- commerce_payment
- commerce_price
- entity_reference_revisions
- options
- state_machine
- user
@@ -28,13 +28,13 @@ content:
weight: 12
region: content
billing_profile:
type: entity_reference_revisions_entity_view
label: above
type: commerce_billing_information
label: hidden
settings:
view_mode: default
link: ''
profile_view_mode: admin
show_payment_information: true
third_party_settings: { }
weight: 10
weight: 5
region: content
completed:
type: timestamp
@@ -56,13 +56,40 @@ content:
weight: 5
region: content
coupons:
label: above
type: entity_reference_label
label: above
settings:
link: true
region: content
weight: 15
third_party_settings: { }
weight: 15
region: content
created:
type: timestamp
label: inline
settings:
date_format: short
custom_date_format: ''
timezone: ''
tooltip:
date_format: long
custom_date_format: ''
time_diff:
enabled: false
future_format: '@interval hence'
past_format: '@interval ago'
granularity: 2
refresh: 60
third_party_settings: { }
weight: 0
region: content
customer_comments:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 16
region: content
field_mailjet_campaign_id:
type: number_integer
label: above
@@ -96,10 +123,12 @@ content:
region: content
order_items:
type: commerce_order_item_table
label: above
settings: { }
label: hidden
settings:
view: commerce_order_item_table_admin
show_add_items_link: true
third_party_settings: { }
weight: 6
weight: 18
region: content
order_number:
type: string
@@ -152,13 +181,6 @@ content:
third_party_settings: { }
weight: 11
region: content
total_price:
type: commerce_order_total_summary
label: hidden
settings: { }
third_party_settings: { }
weight: 3
region: content
uid:
type: author
label: above
@@ -168,5 +190,7 @@ content:
region: content
hidden:
changed: true
commerce_activity_log: true
search_api_excerpt: true
synonyms: true
total_price: true
@@ -10,6 +10,7 @@ dependencies:
- field.field.commerce_order.recurring.field_mailjet_campaign_id
module:
- commerce_order
- commerce_payment
- commerce_price
- commerce_recurring
- state_machine
@@ -37,6 +38,15 @@ content:
third_party_settings: { }
weight: 0
region: content
billing_profile:
type: commerce_billing_information
label: hidden
settings:
profile_view_mode: admin
show_payment_information: true
third_party_settings: { }
weight: 5
region: content
changed:
type: timestamp
label: inline
@@ -83,6 +93,25 @@ content:
third_party_settings: { }
weight: 12
region: content
created:
type: timestamp
label: inline
settings:
date_format: short
custom_date_format: ''
timezone: ''
tooltip:
date_format: long
custom_date_format: ''
time_diff:
enabled: false
future_format: '@interval hence'
past_format: '@interval ago'
granularity: 2
refresh: 60
third_party_settings: { }
weight: 0
region: content
customer_comments:
type: string
label: above
@@ -118,9 +147,11 @@ content:
order_items:
type: commerce_order_item_table
label: hidden
settings: { }
settings:
view: commerce_order_item_table_admin
show_add_items_link: true
third_party_settings: { }
weight: 1
weight: 15
region: content
placed:
type: timestamp
@@ -148,13 +179,6 @@ content:
third_party_settings: { }
weight: 9
region: content
total_price:
type: commerce_order_total_summary
label: hidden
settings: { }
third_party_settings: { }
weight: 2
region: content
uid:
type: author
label: inline
@@ -163,11 +187,12 @@ content:
weight: 6
region: content
hidden:
billing_profile: true
billing_schedule: true
commerce_activity_log: true
commerce_recurring_queued: true
order_number: true
search_api_excerpt: true
store_id: true
synonyms: true
total_paid: true
total_price: true
@@ -0,0 +1,9 @@
status: true
id: commerce_order_unlock
dependencies:
module:
- commerce_order
label: 'Unlock order'
type: commerce_order
plugin: commerce_order_unlock
configuration: { }
+8 -8
View File
@@ -19,7 +19,7 @@ display:
display_plugin: default
position: 0
display_options:
title: 'Order logs'
title: 'Order activity'
fields:
created:
id: created
@@ -75,7 +75,7 @@ display:
click_sort_column: value
type: timestamp
settings:
date_format: medium
date_format: short
custom_date_format: ''
timezone: ''
tooltip:
@@ -162,8 +162,8 @@ display:
label: User
exclude: false
alter:
alter_text: false
text: ''
alter_text: true
text: '<span class="commerce-text--muted">By: {{ uid }}</span> '
make_link: false
path: ''
absolute: false
@@ -259,7 +259,6 @@ display:
order: DESC
expose:
label: ''
field_identifier: log_id
exposed: false
arguments:
source_entity_id:
@@ -348,14 +347,14 @@ display:
columns:
created: created
rendered_entity: rendered_entity
uid: uid
uid: created
default: created
info:
created:
sortable: true
default_sort_order: desc
align: ''
separator: ''
separator: '<br/>'
empty_column: false
responsive: ''
rendered_entity:
@@ -375,7 +374,7 @@ display:
override: true
sticky: false
summary: ''
empty_table: false
empty_table: true
caption: ''
description: ''
row:
@@ -389,6 +388,7 @@ display:
replica: false
query_tags: { }
relationships: { }
use_ajax: true
header:
commerce_log_admin_comment_form:
id: commerce_log_admin_comment_form
@@ -0,0 +1,497 @@
langcode: en
status: true
dependencies:
module:
- commerce_order
- commerce_price
id: commerce_order_item_table_admin
label: 'Order items table (admin)'
module: views
description: 'Display a set of order items in a table.'
tag: commerce_order_item_table
base_table: commerce_order_item
base_field: order_item_id
display:
default:
id: default
display_title: Master
display_plugin: default
position: 0
display_options:
fields:
title:
id: title
table: commerce_order_item
field: title
relationship: none
group_type: group
admin_label: ''
entity_type: null
entity_field: title
plugin_id: field
label: Title
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
click_sort_column: value
type: commerce_order_item_title
settings: { }
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
unit_price__number:
id: unit_price__number
table: commerce_order_item
field: unit_price__number
relationship: none
group_type: group
admin_label: ''
entity_type: commerce_order_item
entity_field: unit_price
plugin_id: field
label: 'Unit price'
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
click_sort_column: number
type: commerce_price_default
settings:
strip_trailing_zeroes: false
currency_display: symbol
group_column: ''
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
quantity:
id: quantity
table: commerce_order_item
field: quantity
relationship: none
group_type: group
admin_label: ''
entity_type: commerce_order_item
entity_field: quantity
plugin_id: field
label: Quantity
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
click_sort_column: value
type: commerce_quantity
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
strip_trailing_zeroes: true
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
total_price__number:
id: total_price__number
table: commerce_order_item
field: total_price__number
relationship: none
group_type: group
admin_label: ''
entity_type: commerce_order_item
entity_field: total_price
plugin_id: field
label: 'Total price'
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
click_sort_column: number
type: commerce_price_default
settings:
strip_trailing_zeroes: false
currency_display: symbol
group_column: ''
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
inline_operations:
id: inline_operations
table: commerce_order_item
field: inline_operations
relationship: none
group_type: group
admin_label: ''
entity_type: commerce_order_item
plugin_id: commerce_order_item_inline_operations
label: 'Inline 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
pager:
type: none
options:
offset: 0
exposed_form:
type: basic
options:
submit_button: Apply
reset_button: false
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
access:
type: none
options: { }
cache:
type: tag
options: { }
empty:
area_text_custom:
id: area_text_custom
table: views
field: area_text_custom
relationship: none
group_type: group
admin_label: ''
plugin_id: text_custom
empty: true
content: 'There are no order items yet.'
tokenize: false
sorts: { }
arguments:
order_item_id:
id: order_item_id
table: commerce_order_item
field: order_item_id
relationship: none
group_type: group
admin_label: ''
entity_type: commerce_order_item
entity_field: order_item_id
plugin_id: numeric
default_action: empty
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: fixed
default_argument_options:
argument: ''
summary_options:
base_path: ''
count: true
override: false
items_per_page: 25
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: false
validate:
type: none
fail: 'not found'
validate_options: { }
break_phrase: true
not: false
filters: { }
style:
type: table
options:
grouping: { }
row_class: ''
default_row_class: true
columns:
title: title
unit_price__number: unit_price__number
quantity: quantity
total_price__number: total_price__number
inline_operations: title
default: '-1'
info:
title:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
unit_price__number:
sortable: false
default_sort_order: asc
align: views-align-center
separator: ''
empty_column: false
responsive: ''
quantity:
sortable: false
default_sort_order: asc
align: views-align-center
separator: ''
empty_column: false
responsive: ''
total_price__number:
sortable: false
default_sort_order: asc
align: views-align-right
separator: ''
empty_column: false
responsive: ''
inline_operations:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
override: true
sticky: false
summary: ''
empty_table: true
caption: ''
description: ''
row:
type: fields
options:
default_field_elements: true
inline: { }
separator: ''
hide_empty: false
query:
type: views_query
options:
query_comment: ''
disable_sql_rewrite: false
distinct: false
replica: false
query_tags: { }
relationships: { }
header: { }
footer:
commerce_order_total:
id: commerce_order_total
table: views
field: commerce_order_total
relationship: none
group_type: group
admin_label: ''
plugin_id: commerce_order_total
empty: false
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
tags: { }