Commit 287678e1 authored by Alexander Dubovskoy's avatar Alexander Dubovskoy

Отображение карточек

parent 0371bc8b
......@@ -5,6 +5,7 @@ id: default
label: Default
description: ''
variationType: default
multipleVariations: true
injectVariationFields: true
traits: { }
locked: false
......@@ -5,6 +5,7 @@ dependencies:
- commerce_store.commerce_store_type.online
module:
- address
- path
id: commerce_store.online.default
targetEntityType: commerce_store
bundle: online
......@@ -52,6 +53,12 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
path:
type: path
weight: 30
region: content
settings: { }
third_party_settings: { }
prices_include_tax:
type: boolean_checkbox
settings:
......
......@@ -6,8 +6,8 @@ dependencies:
- image.style.thumbnail
- taxonomy.vocabulary.product_categories
module:
- image
- path
- svg_image
- text
id: taxonomy_term.product_categories.default
targetEntityType: taxonomy_term
......
......@@ -90,3 +90,4 @@ hidden:
billing_profile: true
order_number: true
store_id: true
total_paid: true
......@@ -83,4 +83,5 @@ hidden:
changed: true
ip_address: true
store_id: true
total_paid: true
uid: true
langcode: ru
status: true
dependencies:
config:
- commerce_product.commerce_product_type.default
- core.entity_view_mode.commerce_product.card
- field.field.commerce_product.default.body
- field.field.commerce_product.default.field_metatags
- field.field.commerce_product.default.field_product_category
- field.field.commerce_product.default.field_product_images
- field.field.commerce_product.default.stores
- field.field.commerce_product.default.variations
- image.style.product
module:
- commerce_product
- ds
- svg_image
third_party_settings:
ds:
layout:
id: layout_onecol
library: layout_discovery/onecol
disable_css: false
entity_classes: all_classes
settings: { }
regions:
content:
- field_product_images
- title
- variations
id: commerce_product.default.card
targetEntityType: commerce_product
bundle: default
mode: card
content:
field_product_images:
weight: 0
label: hidden
settings:
image_style: product
image_link: content
svg_render_as_image: '1'
svg_attributes:
width: ''
height: ''
third_party_settings:
ds:
ds_limit: '1'
type: image
region: content
title:
label: hidden
type: string
weight: 1
region: content
settings:
link_to_entity: true
third_party_settings: { }
variations:
type: commerce_add_to_cart
weight: 2
label: hidden
settings:
combine: true
third_party_settings:
ds:
ds_limit: ''
region: content
hidden:
body: true
created: true
field_metatags: true
field_product_category: true
langcode: true
stores: true
uid: true
......@@ -9,6 +9,7 @@ dependencies:
- field.field.commerce_product.default.field_product_images
- field.field.commerce_product.default.stores
- field.field.commerce_product.default.variations
- image.style.max_1300x1300
- image.style.pro
- image.style.product_in_card
module:
......@@ -42,7 +43,7 @@ content:
settings:
colorbox_node_style: pro
colorbox_node_style_first: product_in_card
colorbox_image_style: ''
colorbox_image_style: max_1300x1300
colorbox_gallery: post
colorbox_gallery_custom: ''
colorbox_caption: auto
......
......@@ -8,23 +8,25 @@ dependencies:
module:
- commerce_cart
- commerce_product
module:
- commerce_price
id: commerce_product_variation.default.cart
targetEntityType: commerce_product_variation
bundle: default
mode: cart
content:
list_price:
label: above
price:
type: commerce_price_default
weight: -1
weight: 0
region: content
label: hidden
settings:
strip_trailing_zeroes: false
currency_display: symbol
third_party_settings: { }
product_id:
type: entity_reference_label
weight: 0
weight: 1
label: hidden
settings:
link: true
......@@ -32,6 +34,6 @@ content:
region: content
hidden:
langcode: true
price: true
list_price: true
sku: true
title: true
......@@ -10,26 +10,18 @@ targetEntityType: commerce_product_variation
bundle: default
mode: default
content:
list_price:
label: above
type: commerce_price_default
weight: -1
region: content
settings:
strip_trailing_zeroes: false
currency_display: symbol
third_party_settings: { }
price:
label: visually_hidden
label: hidden
type: commerce_price_default
weight: 0
region: content
settings:
strip_trailing_zeroes: true
display_currency_code: false
currency_display: symbol
third_party_settings: { }
hidden:
langcode: true
list_price: true
product_id: true
sku: true
title: true
......@@ -7,23 +7,25 @@ dependencies:
enforced:
module:
- commerce_checkout
module:
- commerce_price
id: commerce_product_variation.default.summary
targetEntityType: commerce_product_variation
bundle: default
mode: summary
content:
list_price:
label: above
price:
type: commerce_price_default
weight: -1
weight: 1
region: content
label: hidden
settings:
strip_trailing_zeroes: false
currency_display: symbol
third_party_settings: { }
product_id:
type: entity_reference_label
weight: 0
weight: 2
label: hidden
settings:
link: true
......@@ -32,12 +34,12 @@ content:
title:
label: hidden
type: string
weight: -5
weight: 0
settings:
link_to_entity: false
third_party_settings: { }
region: content
hidden:
langcode: true
price: true
list_price: true
sku: true
......@@ -5,7 +5,7 @@ dependencies:
- field.field.taxonomy_term.product_categories.field_category_image
- taxonomy.vocabulary.product_categories
module:
- image
- svg_image
- text
id: taxonomy_term.product_categories.default
targetEntityType: taxonomy_term
......
langcode: ru
status: true
dependencies:
module:
- commerce_product
id: commerce_product.card
label: card
targetEntityType: commerce_product
cache: true
langcode: ru
status: true
dependencies:
enforced:
module:
- responsive_image
name: max_1300x1300
label: 'Max 1300x1300'
effects:
04caae9a-fa3e-4ea6-ae09-9c26aec7d308:
uuid: 04caae9a-fa3e-4ea6-ae09-9c26aec7d308
id: image_scale
weight: 1
data:
width: 1300
height: 1300
upscale: false
langcode: ru
status: true
dependencies: { }
dependencies:
module:
- image_effects
name: product
label: 'Product grid'
effects:
3527c5c6-7b1f-4f7d-854c-02cf6f89c5f1:
uuid: 3527c5c6-7b1f-4f7d-854c-02cf6f89c5f1
id: image_scale_and_crop
weight: 1
b218357a-5032-44bb-8779-2730f8eff076:
uuid: b218357a-5032-44bb-8779-2730f8eff076
id: image_effects_set_canvas
weight: -9
data:
canvas_size: exact
exact:
width: '150'
height: '150'
placement: center-center
x_offset: 0
y_offset: 0
relative:
left: 0
right: 0
top: 0
bottom: 0
canvas_color: ''
39f23b44-b449-49b3-9c45-c0e1c5a5b616:
uuid: 39f23b44-b449-49b3-9c45-c0e1c5a5b616
id: image_scale
weight: -10
data:
width: 150
height: 150
anchor: center-center
upscale: false
......@@ -4,11 +4,11 @@ dependencies: { }
name: product_in_card
label: 'Product in card'
effects:
b1e636bd-6bb7-48f9-a761-15a58cbb15c9:
uuid: b1e636bd-6bb7-48f9-a761-15a58cbb15c9
id: image_scale_and_crop
ccff8edb-253e-4923-90d1-7877e3af2907:
uuid: ccff8edb-253e-4923-90d1-7877e3af2907
id: image_scale
weight: 1
data:
width: 300
height: 330
anchor: center-center
height: null
upscale: false
......@@ -6,9 +6,8 @@ dependencies:
- commerce_order
id: customer
label: Покупатель
registration: false
multiple: true
registration: false
roles: { }
weight: 0
use_revisions: false
description: null
allow_revisions: false
new_revision: false
......@@ -4,5 +4,4 @@ dependencies: { }
name: 'Категории продукции'
vid: product_categories
description: ''
hierarchy: 1
weight: 0
uuid: 2814f43a-a374-49f3-839c-b656720a64d4
langcode: ru
status: true
dependencies:
......@@ -10,8 +9,6 @@ dependencies:
- svg_image
- taxonomy
- user
_core:
default_config_hash: yeRi48SWxKkmjo-kUihY__AzxhMbjQ1PYlnf7T5c9Js
id: categories
label: Категории
module: views
......
......@@ -2,6 +2,7 @@ langcode: ru
status: true
dependencies:
config:
- core.entity_view_mode.commerce_product.card
- field.storage.commerce_product.field_product_images
- field.storage.commerce_product.variations
- image.style.product
......@@ -77,7 +78,10 @@ display:
style:
type: default
row:
type: fields
type: 'entity:commerce_product'
options:
relationship: none
view_mode: card
fields:
field_product_images:
id: field_product_images
......
......@@ -16,6 +16,7 @@ dependencies:
- field
- file
- image
- image_effects
- inline_entity_form
- language
- metatag
......@@ -33,4 +34,4 @@ dependencies:
- text
- user
- views
version: 8.x-1.1
version: 8.x-1.2
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment