Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"minimum-stability": "dev",
"require": {
"drupal/core": "^10.3 || ^11",
"drupal/commerce": "^2.40 || ^3.0"
"drupal/commerce": "^2.40 || ^3.0",
"drupal/commerce_shipping": "^2.11",
"drupal/commerce_stripe": "^1.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
langcode: en
status: true
dependencies:
module:
- commerce_payment
- commerce_shipping
- commerce_stripe
_core:
default_config_hash: 1BxQSpt9FMh77dg9LMMrriQ4JRWHwnBKzywwOwSpQ04
label: Default
id: default
plugin: multistep_default
configuration:
display_checkout_progress: true
display_checkout_progress_breadcrumb_links: true
guest_order_assign: true
guest_new_account: true
guest_new_account_notify: false
panes:
contact_information:
step: order_information
weight: 0
double_entry: false
shipping_information:
step: order_information
weight: 1
auto_recalculate: true
require_shipping_profile: true
payment_information:
step: order_information
weight: 2
stripe_review:
step: review
weight: 3
button_id: edit-actions-next
auto_submit_review_form: false
setup_future_usage: ''
review:
step: review
weight: 4
payment_process:
step: payment
weight: 5
capture: true
completion_message:
step: complete
weight: 6
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
order_summary:
step: _sidebar
weight: 7
view: null
customer_comments:
step: _disabled
weight: 8
completion_register:
step: _disabled
weight: 9
login:
step: _disabled
weight: 10
allow_guest_checkout: true
allow_registration: false
registration_form_mode: register
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
langcode: en
status: true
dependencies:
module:
- commerce_cart
- commerce_checkout
- commerce_shipping
third_party_settings:
commerce_cart:
cart_block_view: commerce_cart_block
cart_form_view: commerce_cart_form
cart_expiration: { }
enable_cart_message: false
commerce_checkout:
checkout_flow: default
commerce_shipping:
shipment_type: default
_core:
default_config_hash: kYapI397yx2zFJGyDEs85Hyqgfc9jhmzxqPZMl2Fqhk
id: default
label: Default
traits: { }
locked: false
workflow: order_default
numberPattern: order_default
refresh_mode: customer
refresh_frequency: 300
sendReceipt: true
receiptBcc: ''
receiptSubject: ''
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
langcode: en
status: true
dependencies:
module:
- commerce_stripe
id: stripe_payment_element
label: 'Stripe Payment Element'
weight: null
plugin: stripe_payment_element
configuration:
display_label: 'Stripe Payment Element'
mode: test
payment_method_types:
- stripe_card
collect_billing_information: true
publishable_key: placeholder
secret_key: placeholder
webhook_signing_secret: placeholder
payment_method_usage: on_session
capture_method: automatic
style:
theme: stripe
layout: accordion
checkout_form_display_label:
custom_label: ''
show_payment_method_logos: 'no'
include_logos:
amex: amex
discover: discover
mastercard: mastercard
visa: visa
affirm: '0'
alipay: '0'
amazon_pay: '0'
dinersclub: '0'
jcb: '0'
maestro: '0'
unionpay: '0'
applepay: '0'
googlepay: '0'
cashapp: '0'
klarna: '0'
us_bank_account: '0'
wechat_pay: '0'
conditions: { }
conditionOperator: AND
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
langcode: en
status: true
dependencies: { }
id: basic
label: 'Basic Product'
traits:
- purchasable_entity_shippable
locked: false
orderItemType: default
generateTitle: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
langcode: en
status: true
dependencies:
config:
- commerce_order.commerce_order_type.default
- field.field.commerce_order.default.shipments
module:
- commerce_order
- inline_entity_form
_core:
default_config_hash: OxAaChovIat28naja81fSKWGZHYQHv6xrrmhnK-bXUI
id: commerce_order.default.default
targetEntityType: commerce_order
bundle: default
mode: default
content:
adjustments:
type: commerce_adjustment_default
weight: 2
region: content
settings: { }
third_party_settings: { }
billing_profile:
type: commerce_billing_profile
weight: 0
region: content
settings: { }
third_party_settings: { }
cart:
type: boolean_checkbox
weight: 20
region: content
settings:
display_label: true
third_party_settings: { }
order_items:
type: inline_entity_form_complex
weight: 1
region: content
settings:
form_mode: default
override_labels: true
label_singular: 'order item'
label_plural: 'order items'
allow_new: true
allow_existing: false
match_operator: CONTAINS
removed_reference: delete
third_party_settings: { }
hidden:
created: true
customer_comments: true
ip_address: true
mail: true
order_number: true
shipments: true
state: true
store_id: true
uid: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
langcode: en
status: true
dependencies:
config:
- commerce_product.commerce_product_variation_type.basic
- field.field.commerce_product_variation.basic.field_bpv_weight
- field.field.commerce_product_variation.basic.field_stock
- field.field.commerce_product_variation.basic.weight
module:
- commerce_price
- commerce_stock_field
- physical
id: commerce_product_variation.basic.default
targetEntityType: commerce_product_variation
bundle: basic
mode: default
content:
commerce_stock_always_in_stock:
type: boolean_checkbox
weight: 4
region: content
settings:
display_label: true
third_party_settings: { }
field_bpv_weight:
type: number
weight: 2
region: content
settings:
placeholder: ''
third_party_settings: { }
field_stock:
type: commerce_stock_level_simple_transaction
weight: 5
region: content
settings:
step: '1'
custom_transaction_note: false
default_transaction_note: 'Transaction issued by stock level field.'
third_party_settings: { }
list_price:
type: commerce_list_price
weight: 2
region: content
settings: { }
third_party_settings: { }
price:
type: commerce_price_default
weight: 3
region: content
settings: { }
third_party_settings: { }
sku:
type: string_textfield
weight: 1
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
status:
type: boolean_checkbox
weight: 6
region: content
settings:
display_label: true
third_party_settings: { }
title:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
weight:
type: physical_measurement_default
weight: 91
region: content
settings:
default_unit: ''
allow_unit_change: true
available_units: { }
third_party_settings: { }
hidden:
created: true
uid: true
Loading