add to cart links for products in home

This commit is contained in:
2021-06-09 13:06:52 +02:00
parent d9d2180f94
commit 352223500f
25 changed files with 561 additions and 249 deletions

View File

@@ -29,6 +29,15 @@ content:
settings:
link_to_entity: false
third_party_settings: { }
variations:
type: entity_reference_entity_view
weight: 2
region: content
label: hidden
settings:
view_mode: add_to_cart
link: false
third_party_settings: { }
hidden:
created: true
field_price_description: true
@@ -36,4 +45,3 @@ hidden:
search_api_excerpt: true
stores: true
uid: true
variations: true

View File

@@ -13,6 +13,7 @@ dependencies:
- field.field.commerce_product_variation.materio_product_variation_type.subscription_type
module:
- commerce_variation_cart_form
- text
third_party_settings:
commerce_variation_cart_form:
combine: '1'
@@ -22,13 +23,19 @@ bundle: materio_product_variation_type
mode: add_to_cart
content:
commerce_variation_cart_form:
weight: 1
region: content
settings: { }
third_party_settings: { }
field_description:
type: text_default
weight: 0
region: content
label: hidden
settings: { }
third_party_settings: { }
hidden:
billing_schedule: true
field_description: true
field_multiple: true
langcode: true
license_expiration: true

View File

@@ -57,7 +57,7 @@ third_party_settings:
speed: fast
id: ''
classes: home-database
label: database
label: 'base de données'
region: content
group_showrooms:
children:
@@ -101,6 +101,7 @@ third_party_settings:
children:
- field_pricing_pitch
- field_pricing
- computed_products_reference
parent_name: ''
weight: 4
format_type: html_element
@@ -114,7 +115,7 @@ third_party_settings:
id: ''
classes: home-pricing
element: section
label: pricing
label: tarifs
region: content
group_db_col_left:
children:
@@ -229,6 +230,15 @@ targetEntityType: node
bundle: frontpage
mode: home_light
content:
computed_products_reference:
type: entity_reference_entity_view
weight: 6
region: content
label: hidden
settings:
view_mode: home_summary
link: false
third_party_settings: { }
field_a_database:
weight: 6
label: above
@@ -350,7 +360,6 @@ content:
hidden:
computed_articles_reference: true
computed_materials_reference: true
computed_products_reference: true
computed_showrooms_reference: true
langcode: true
links: true