Browse Source

added manual payement

bach 2 years ago
parent
commit
580d6f9059

+ 5 - 0
.vscode/extensions.json

@@ -0,0 +1,5 @@
+{
+    "recommendations": [
+        "felixfbecker.php-debug"
+    ]
+}

+ 26 - 0
.vscode/launch.json

@@ -0,0 +1,26 @@
+{
+    // Use IntelliSense to learn about possible attributes.
+    // Hover to view descriptions of existing attributes.
+    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "name": "Listen for Xdebug",
+            "type": "php",
+            "request": "launch",
+            "serverSourceRoot":"192.168.0.21"
+            "port": 9001,
+            "pathMappings": {
+                "/var/www/html/d8.materio.com/public_html": "${workspaceFolder}"
+            },
+        },
+        {
+            "name": "Launch currently open script",
+            "type": "php",
+            "request": "launch",
+            "program": "${file}",
+            "cwd": "${fileDirname}",
+            "port": 9001
+        }
+    ]
+}

+ 0 - 23
config/sync/commerce_payment.commerce_payment_gateway.cm_cic.yml

@@ -1,23 +0,0 @@
-uuid: 9fd9ac25-5b14-4630-a056-546da6b3b418
-langcode: en
-status: false
-dependencies:
-  module:
-    - commerce_cmcic
-id: cm_cic
-label: CIC-CM
-weight: -10
-plugin: commerce_cmcic
-configuration:
-  display_label: 'Credit Card via CIC-CM'
-  mode: test
-  payment_method_types:
-    - credit_card
-  collect_billing_information: true
-  bank_type: monetico
-  version: '3.0'
-  security_key: 7C86189FA72DA637A722BB395BFB9D403D3C7097
-  tpe: '6277685'
-  company: materio
-conditions: {  }
-conditionOperator: AND

+ 19 - 0
config/sync/commerce_payment.commerce_payment_gateway.manual.yml

@@ -0,0 +1,19 @@
+uuid: f8318796-0261-48b2-9f16-0b127f0cd47f
+langcode: fr
+status: true
+dependencies: {  }
+id: manual
+label: Manuel
+weight: null
+plugin: manual
+configuration:
+  instructions:
+    value: ''
+    format: plain_text
+  display_label: 'Virement ou chèque'
+  mode: n/a
+  payment_method_types:
+    - credit_card
+  collect_billing_information: true
+conditions: {  }
+conditionOperator: AND

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

@@ -22,13 +22,13 @@ mode: default
 content:
   address:
     type: address_default
-    weight: 1
+    weight: 0
     settings: {  }
     third_party_settings: {  }
     region: content
   tax_number:
     type: commerce_tax_number_default
-    weight: 0
+    weight: 1
     region: content
     settings: {  }
     third_party_settings: {  }

+ 0 - 1
config/sync/core.extension.yml

@@ -23,7 +23,6 @@ module:
   commerce_cart: 0
   commerce_cart_api: 0
   commerce_checkout: 0
-  commerce_cmcic: 0
   commerce_license: 0
   commerce_log: 0
   commerce_migrate: 0

+ 4 - 3
config/sync/field.field.profile.customer.tax_number.yml

@@ -14,15 +14,16 @@ id: profile.customer.tax_number
 field_name: tax_number
 entity_type: profile
 bundle: customer
-label: 'Tax number'
-description: ''
+label: 'VAT number'
+description: 'Intra-community VAT number (to be completed only for professionals outside France)'
 required: false
 translatable: false
 default_value:
   - {  }
 default_value_callback: ''
 settings:
-  countries: {  }
+  countries:
+    EU: EU
   verify: true
   allow_unverified: true
 field_type: commerce_tax_number

+ 4 - 0
config/sync/field.storage.profile.tax_number.yml

@@ -7,7 +7,11 @@ dependencies:
       - commerce_tax
   module:
     - commerce_tax
+    - field_permissions
     - profile
+third_party_settings:
+  field_permissions:
+    permission_type: public
 id: profile.tax_number
 field_name: tax_number
 entity_type: profile

+ 2 - 0
config/sync/language/en/commerce_payment.commerce_payment_gateway.manual.yml

@@ -0,0 +1,2 @@
+configuration:
+  display_label: 'Bank transfer or check'

+ 2 - 0
config/sync/language/fr/field.field.profile.customer.tax_number.yml

@@ -0,0 +1,2 @@
+label: 'numéro de TVA'
+description: 'N° de TVA intracommunautaire (à renseigner uniquement pour les professionnels hors France)'

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


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

@@ -2459,8 +2459,18 @@ article.card{
       order:2;
       background-color: $color-webshowroom;
       padding: 1em;
+      fieldset#edit-payment-information{
+        #edit-payment-information-add-payment-method{
+          // display: flex;
+          // flex-flow: column-reverse;
+          // #edit-payment-information-add-payment-method-payment-details{
+          //   margin: 1em 0 0;
+          // }
+        }
+      }
       label,
       legend,
+      .description,
       fieldset#edit-review-contact-information,
       fieldset#edit-review-payment-information{
         color: #fff;

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