Browse Source

better complete checkout message

bach 3 years ago
parent
commit
a250ede8c8

+ 18 - 1
config/sync/block.block.materiosapisearchblock.yml

@@ -3,7 +3,9 @@ langcode: en
 status: true
 dependencies:
   module:
+    - context
     - materio_sapi
+    - system
   theme:
     - materiotheme
 id: materiosapisearchblock
@@ -17,4 +19,19 @@ settings:
   label: 'Materio sapi search block'
   provider: materio_sapi
   label_display: '0'
-visibility: {  }
+visibility:
+  view_inclusion:
+    id: view_inclusion
+    negate: null
+    view_inclusion: {  }
+    context_mapping: {  }
+  request_path_exclusion:
+    id: request_path_exclusion
+    pages: ''
+    negate: null
+    context_mapping: {  }
+  request_path:
+    id: request_path
+    pages: '/checkout/*'
+    negate: true
+    context_mapping: {  }

+ 1 - 1
config/sync/block.block.materiosimplenewssubscription.yml

@@ -16,7 +16,7 @@ provider: null
 plugin: materio_simplenews_subscription_block
 settings:
   id: materio_simplenews_subscription_block
-  label: 'Materio Simplenews subscription'
+  label: 'Inscription newsletter Materio'
   provider: materio_simplenews
   label_display: '0'
   newsletters:

+ 1 - 1
config/sync/block.block.userlogin.yml

@@ -15,7 +15,7 @@ provider: null
 plugin: user_login_block
 settings:
   id: user_login_block
-  label: 'Member access'
+  label: 'Accès membre'
   provider: user
   label_display: visible
 visibility:

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

@@ -14,6 +14,12 @@ configuration:
   display_checkout_progress: true
   display_checkout_progress_breadcrumb_links: true
   panes:
+    contact_information:
+      double_entry: false
+      step: order_information
+      weight: 0
+      allow_guest_checkout: true
+      allow_registration: false
     payment_information:
       step: order_information
       weight: 1
@@ -30,13 +36,13 @@ configuration:
       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
+        value: "<p class=\"welcom\">[current-user:customer:address:given_name]&nbsp;[current-user:customer:address:family_name] thank you and welcome&nbsp;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\">&nbsp;</p>\r\n"
+        format: wysiwyg
       step: complete
       weight: 5
     order_summary:
       view: commerce_checkout_order_summary
-      step: _sidebar
+      step: complete
       weight: 6
     coupon_redemption:
       allow_multiple: false
@@ -58,9 +64,3 @@ 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

+ 6 - 0
config/sync/language/fr/commerce_checkout.commerce_checkout_flow.materio_checkout_flow.yml

@@ -0,0 +1,6 @@
+configuration:
+  panes:
+    completion_message:
+      message:
+        value: "<p class=\"welcom\">[current-user:customer:address:given_name]&nbsp;[current-user:customer:address:family_name] merci et bienvenue à [site:name]!</p>\r\n\r\n<p class=\"base\">Vous avez maintenant accès a nos&nbsp;<a href=\"/base\">8000+ fiches materiaux</a></p>\r\n\r\n<p class=\"order\">&nbsp;</p>\r\n"
+        format: wysiwyg

File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/main.css


BIN
web/themes/custom/materiotheme/assets/dist/main.css.gz


File diff suppressed because it is too large
+ 1 - 1
web/themes/custom/materiotheme/assets/dist/report.html


+ 21 - 0
web/themes/custom/materiotheme/assets/styles/main.scss

@@ -2617,6 +2617,27 @@ article.card{
         font-size: 1.323em;
       }
     }
+    #edit-completion-message{
+      p.welcom{
+        font-size: 1.512em;
+      }
+      p.base{
+        a{
+          @include btn;
+          background-color: $color-base;
+          color: #fff;
+          font-size: 1.134em;
+        }
+      }
+      p.order{
+
+      }
+
+    }
+    #edit-order-summary{
+      background-color: $color-showrooms;
+      padding:1em;
+    }
   }
 }
 

Some files were not shown because too many files changed in this diff