Skip to content

Commit

Permalink
Implemented pleliminary set of entities and configuration for commerce
Browse files Browse the repository at this point in the history
  • Loading branch information
lpalgarvio committed Dec 26, 2017
1 parent 736c61b commit e5adc63
Show file tree
Hide file tree
Showing 29 changed files with 851 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions config/staging/commerce_order.commerce_order_type.associate.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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: { }
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion config/staging/commerce_store.settings.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
default_store: ''
default_store: c03a6284-30e1-413e-8322-8e952ef74da6
_core:
default_config_hash: B9ZFGR76POyzj9f3Sh66F346_Jp-wnnUc78Hk3Q-60o
langcode: pt-pt
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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: { }
Loading

0 comments on commit e5adc63

Please sign in to comment.