Browse Source

commerce: collect vat number on billing info

bach 2 years ago
parent
commit
6eb07263d3

+ 11 - 9
config/sync/commerce_checkout.commerce_checkout_flow.materio_checkout_flow.yml

@@ -14,15 +14,6 @@ configuration:
   display_checkout_progress: true
   display_checkout_progress_breadcrumb_links: true
   panes:
-    email_registration_login:
-      allow_guest_checkout: true
-      allow_registration: false
-      step: _disabled
-      weight: 8
-    contact_information:
-      double_entry: false
-      step: order_information
-      weight: 0
     payment_information:
       step: order_information
       weight: 1
@@ -51,6 +42,11 @@ configuration:
       allow_multiple: false
       step: _sidebar
       weight: 7
+    email_registration_login:
+      allow_guest_checkout: true
+      allow_registration: false
+      step: _disabled
+      weight: 8
     email_registration_completion_registration:
       step: _disabled
       weight: 9
@@ -62,3 +58,9 @@ configuration:
       allow_registration: false
       step: _disabled
       weight: 11
+    contact_information:
+      double_entry: false
+      step: order_information
+      weight: 0
+      allow_guest_checkout: true
+      allow_registration: false

+ 1 - 1
config/sync/commerce_tax.commerce_tax_type.eu.yml

@@ -6,4 +6,4 @@ id: eu
 label: EU
 plugin: european_union_vat
 configuration:
-  display_inclusive: true
+  display_inclusive: false

+ 4 - 3
config/sync/core.entity_form_display.commerce_order.materio_order_type.default.yml

@@ -15,7 +15,7 @@ mode: default
 content:
   adjustments:
     type: commerce_adjustment_default
-    weight: 0
+    weight: 3
     region: content
     settings: {  }
     third_party_settings: {  }
@@ -29,12 +29,12 @@ content:
     type: boolean_checkbox
     settings:
       display_label: true
-    weight: 20
+    weight: 4
     region: content
     third_party_settings: {  }
   order_items:
     type: inline_entity_form_complex
-    weight: 0
+    weight: 2
     settings:
       form_mode: variation_cart_form
       override_labels: true
@@ -46,6 +46,7 @@ content:
       allow_new: false
       allow_existing: false
       allow_duplicate: false
+      revision: false
     third_party_settings: {  }
     region: content
 hidden:

+ 8 - 2
config/sync/core.entity_form_display.profile.customer.default.yml

@@ -12,6 +12,7 @@ dependencies:
       - commerce_order
   module:
     - address
+    - commerce_tax
 _core:
   default_config_hash: 7mnnVkJkUSPhil9xoiTfdTivMqxCUloT_71AHWNUbJg
 id: profile.customer.default
@@ -21,11 +22,16 @@ mode: default
 content:
   address:
     type: address_default
-    weight: 0
+    weight: 1
     settings: {  }
     third_party_settings: {  }
     region: content
+  tax_number:
+    type: commerce_tax_number_default
+    weight: 0
+    region: content
+    settings: {  }
+    third_party_settings: {  }
 hidden:
   is_default: true
   phone: true
-  tax_number: true

+ 1 - 0
config/sync/core.entity_view_display.commerce_order.materio_order_type.checkout.yml

@@ -89,6 +89,7 @@ content:
     settings: {  }
     third_party_settings: {  }
 hidden:
+  balance: true
   changed: true
   ip_address: true
   mail: true