Permalink
Browse files

Implemented pleliminary set of entities and configuration for commerce

  • Loading branch information...
lpalgarvio committed Dec 26, 2017
1 parent 736c61b commit e5adc63c16a7a35e9b0465a83021508786acc5de
Showing with 851 additions and 1 deletion.
  1. +38 −0 config/staging/commerce_checkout.commerce_checkout_flow.associate.yml
  2. +10 −0 config/staging/commerce_order.commerce_order_item_type.individual_associate.yml
  3. +21 −0 config/staging/commerce_order.commerce_order_type.associate.yml
  4. +24 −0 config/staging/commerce_payment.commerce_payment_gateway.manual.yml
  5. +22 −0 config/staging/commerce_payment.commerce_payment_gateway.paypal.yml
  6. +10 −0 config/staging/commerce_product.commerce_product_type.individual_associate.yml
  7. +17 −0 config/staging/commerce_product.commerce_product_variation_type.individual_associate.yml
  8. +1 −1 config/staging/commerce_store.settings.yml
  9. +61 −0 config/staging/core.entity_form_display.commerce_order.associate.default.yml
  10. +34 −0 config/staging/core.entity_form_display.commerce_order_item.individual_associate.add_to_cart.yml
  11. +41 −0 config/staging/core.entity_form_display.commerce_order_item.individual_associate.default.yml
  12. +95 −0 config/staging/core.entity_form_display.commerce_product.individual_associate.default.yml
  13. +67 −0 config/staging/core.entity_form_display.commerce_product_variation.individual_associate.default.yml
  14. +85 −0 config/staging/core.entity_view_display.commerce_order.associate.default.yml
  15. +26 −0 config/staging/core.entity_view_display.commerce_order_item.individual_associate.default.yml
  16. +37 −0 config/staging/core.entity_view_display.commerce_product.individual_associate.default.yml
  17. +31 −0 config/staging/core.entity_view_display.commerce_product_variation.individual_associate.default.yml
  18. +21 −0 config/staging/field.field.commerce_order.associate.order_items.yml
  19. +21 −0 config/staging/field.field.commerce_order_item.individual_associate.license.yml
  20. +22 −0 config/staging/field.field.commerce_product.individual_associate.body.yml
  21. +21 −0 config/staging/field.field.commerce_product.individual_associate.stores.yml
  22. +24 −0 config/staging/field.field.commerce_product.individual_associate.variations.yml
  23. +21 −0 config/staging/field.field.commerce_product_variation.individual_associate.license_expiration.yml
  24. +21 −0 config/staging/field.field.commerce_product_variation.individual_associate.license_type.yml
  25. +20 −0 config/staging/field.storage.commerce_order_item.license.yml
  26. +19 −0 config/staging/field.storage.commerce_product_variation.license_expiration.yml
  27. +19 −0 config/staging/field.storage.commerce_product_variation.license_type.yml
  28. +11 −0 config/staging/language.content_settings.commerce_product.individual_associate.yml
  29. +11 −0 config/staging/language.content_settings.commerce_product_variation.individual_associate.yml
@@ -0,0 +1,38 @@
uuid: 0a4b5afb-82c9-452f-8549-82faa1517169
langcode: en
status: true
dependencies:
module:
- commerce_payment
id: associate
label: Sócio
plugin: multistep_default
configuration:
display_checkout_progress: true
panes:
review:
step: review
weight: 10
completion_message:
step: complete
weight: 10
login:
allow_guest_checkout: false
allow_registration: true
step: login
weight: 10
contact_information:
double_entry: false
step: order_information
weight: 10
order_summary:
view: commerce_checkout_order_summary
step: _sidebar
weight: 10
payment_process:
capture: true
step: payment
weight: 10
payment_information:
step: order_information
weight: 10
@@ -0,0 +1,10 @@
uuid: 287eb76b-6d4a-4cbf-8618-7c901a691e23
langcode: en
status: true
dependencies: { }
label: 'Sócio Individual'
id: individual_associate
purchasableEntityType: commerce_product_variation
orderType: associate
traits:
- commerce_license_order_item_type
@@ -0,0 +1,21 @@
uuid: d6c1891d-8c0a-499d-a3a8-ea9a96ec1f02
langcode: en
status: true
dependencies:
module:
- commerce_cart
- commerce_checkout
third_party_settings:
commerce_cart:
cart_form_view: commerce_cart_form
cart_block_view: commerce_cart_block
commerce_checkout:
checkout_flow: associate
label: Sócio
id: associate
workflow: order_fulfillment
traits: { }
refresh_mode: customer
refresh_frequency: 300
sendReceipt: true
receiptBcc: secretariado@drupal.pt
@@ -0,0 +1,24 @@
uuid: 102b7a6f-9741-4cca-b07c-055282a71f5a
langcode: en
status: false
dependencies: { }
id: manual
label: Manual
weight: null
plugin: manual
configuration:
instructions:
value: ''
format: plain_text
display_label: Manual
mode: n/a
payment_method_types:
- credit_card
conditions:
-
plugin: order_customer_role
configuration:
roles:
- administrator
- moderator
conditionOperator: AND
@@ -0,0 +1,22 @@
uuid: 439df86e-c3da-4528-8b2c-213fbae76668
langcode: en
status: true
dependencies:
module:
- commerce_paypal
id: paypal
label: Paypal
weight: null
plugin: paypal_express_checkout
configuration:
api_username: paypal_api1.drupal-pt.org
api_password: QZAGDLK4CTJZSJ4Q
shipping_prompt: shipping_skip
signature: AQZV3h9JZgeLfLrW5aTWcWBDuZTNAwn6o0P6YsrSUCm.SelTTyFt0Lyk
solution_type: Mark
display_label: PayPal
mode: live
payment_method_types:
- credit_card
conditions: { }
conditionOperator: AND
@@ -0,0 +1,10 @@
uuid: 80ba3fd2-95f1-4606-8c10-e61379f74e03
langcode: en
status: true
dependencies: { }
id: individual_associate
label: 'Sócio Individual'
description: ''
variationType: individual_associate
injectVariationFields: true
traits: { }
@@ -0,0 +1,17 @@
uuid: 14372452-7703-4cea-af02-0d8e01b8ff7d
langcode: en
status: true
dependencies:
module:
- commerce_license
third_party_settings:
commerce_license:
license_types:
role: role
activate_on_place: false
id: individual_associate
label: 'Sócio Individual'
orderItemType: individual_associate
generateTitle: false
traits:
- commerce_license
@@ -1,4 +1,4 @@
default_store: ''
default_store: c03a6284-30e1-413e-8322-8e952ef74da6
_core:
default_config_hash: B9ZFGR76POyzj9f3Sh66F346_Jp-wnnUc78Hk3Q-60o
langcode: pt-pt
@@ -0,0 +1,61 @@
uuid: f6006cc3-7d6d-45de-8939-f68775c5e39c
langcode: en
status: true
dependencies:
config:
- commerce_order.commerce_order_type.associate
- field.field.commerce_order.associate.order_items
module:
- commerce_order
- inline_entity_form
- path
id: commerce_order.associate.default
targetEntityType: commerce_order
bundle: associate
mode: default
content:
adjustments:
type: commerce_adjustment_default
weight: 0
region: content
settings: { }
third_party_settings: { }
billing_profile:
type: commerce_billing_profile
weight: 0
settings: { }
region: content
third_party_settings: { }
cart:
type: boolean_checkbox
settings:
display_label: true
weight: 20
region: content
third_party_settings: { }
order_items:
type: inline_entity_form_complex
weight: 0
settings:
override_labels: true
label_singular: 'order item'
label_plural: 'order items'
form_mode: default
allow_new: true
allow_existing: false
match_operator: CONTAINS
third_party_settings: { }
region: content
path:
type: path
weight: 30
region: content
settings: { }
third_party_settings: { }
hidden:
ip_address: true
mail: true
order_number: true
state: true
store_id: true
uid: true
@@ -0,0 +1,34 @@
uuid: ba52a402-3fe1-4161-83b9-b8a04afca622
langcode: en
status: true
dependencies:
config:
- commerce_order.commerce_order_item_type.individual_associate
- core.entity_form_mode.commerce_order_item.add_to_cart
module:
- commerce_order
id: commerce_order_item.individual_associate.add_to_cart
targetEntityType: commerce_order_item
bundle: individual_associate
mode: add_to_cart
content:
purchased_entity:
type: entity_reference_autocomplete
weight: -1
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
region: content
third_party_settings: { }
quantity:
type: commerce_quantity
weight: 1
region: content
settings:
step: '1'
placeholder: ''
third_party_settings: { }
hidden:
created: true
unit_price: true
@@ -0,0 +1,41 @@
uuid: 549c895c-2f1f-43e2-8c04-e84d3d5a87a5
langcode: en
status: true
dependencies:
config:
- commerce_order.commerce_order_item_type.individual_associate
- field.field.commerce_order_item.individual_associate.license
module:
- commerce_order
id: commerce_order_item.individual_associate.default
targetEntityType: commerce_order_item
bundle: individual_associate
mode: default
content:
purchased_entity:
type: entity_reference_autocomplete
weight: -1
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
region: content
third_party_settings: { }
quantity:
type: commerce_quantity
weight: 1
region: content
settings:
step: '1'
placeholder: ''
third_party_settings: { }
unit_price:
type: commerce_unit_price
weight: 2
settings:
require_confirmation: true
region: content
third_party_settings: { }
hidden:
created: true
license: true
@@ -0,0 +1,95 @@
uuid: 19d8125b-1258-4f89-bd38-55646c7a721d
langcode: en
status: true
dependencies:
config:
- commerce_product.commerce_product_type.individual_associate
- field.field.commerce_product.individual_associate.body
- field.field.commerce_product.individual_associate.stores
- field.field.commerce_product.individual_associate.variations
module:
- commerce
- inline_entity_form
- path
- text
id: commerce_product.individual_associate.default
targetEntityType: commerce_product
bundle: individual_associate
mode: default
content:
body:
type: text_textarea_with_summary
weight: 1
settings:
rows: 9
summary_rows: 3
placeholder: ''
third_party_settings: { }
region: content
created:
type: datetime_timestamp
weight: 10
region: content
settings: { }
third_party_settings: { }
langcode:
type: language_select
weight: 2
region: content
settings:
include_locked: true
third_party_settings: { }
path:
type: path
weight: 30
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 90
region: content
third_party_settings: { }
stores:
type: commerce_entity_select
weight: -10
settings:
hide_single_entity: true
autocomplete_threshold: 7
autocomplete_size: 60
autocomplete_placeholder: ''
third_party_settings: { }
region: content
title:
type: string_textfield
weight: -5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 5
region: content
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
third_party_settings: { }
variations:
type: inline_entity_form_complex
weight: 10
settings:
override_labels: true
label_singular: variation
label_plural: variations
form_mode: default
allow_new: true
allow_existing: false
match_operator: CONTAINS
third_party_settings: { }
region: content
hidden: { }
Oops, something went wrong.

0 comments on commit e5adc63

Please sign in to comment.