Output
Product
product: (returns handle) cool-phone-14
product id: 7657958801461
product title: Cool Phone 14
product url: /products/cool-phone-14
product type: Mobile Phones
product variants: ProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDrop
product first_available_variant id:
product selected_or_first_available_variant id: 43776968949813
product available: false
product featured_image: files/cool-phone-14-714762.png
product featured_image | img_tag: Liquid error (sections/metafields-reference line 70): image_url must define width or height
product has_only_default_variant: false
- example: (if has default only default variant, show text)
product collections:
- example: (loop through collection titles)
product options: ColorSize
product options.size: 2
- example: (loop through options)
- Color
- Size
product options_by_name['Color']: ProductOptionDrop
- example: (loop through options_by_name['Color'])
- Slate Gray
- Light Blue
- Fuchsia
product options_with_values: ProductOptionDropProductOptionDrop
- example: (loop through options_with_values)
product price: 150000
product price_min: 150000
product price_max: 150000
product price_varies: false
product product.tags: 4gretina display
- example: (loop through tags)
- 4g
- retina display
product template_suffix: two-col
Metafields of Product
metafields syntax: metafields.namespace.key
product metafields.custom (only if no empty): {% for field in my_field %}
- Metafield: (returns definition and value) bundle["gid://shopify/Product/7657958801461","gid://shopify/Product/7657958604853"]
product metafields.custom.bundle.type: list.product_reference
product metafields.custom.bundle.value: ProductListDrop
1.Bundle Metafield ###############
-
-- list --
- type Mobile Phones
- id 7657958801461
- title Cool Phone 14
- url /products/cool-phone-14
- type Mobile Phones
- featured_image files/cool-phone-14-714762.png
- featured_image | img_tag Liquid error (sections/metafields-reference line 224): image_url must define width or height
- variants ProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDrop
- first_available_variant.id
- selected_or_first_available_variant.id 43776968949813
- options ColorSize
- options_by_name['Color'] ProductOptionDrop
- options_with_values ProductOptionDropProductOptionDrop
- Color
- Slate GrayLight BlueFuchsia
- Slate Gray
- Light Blue
- Fuchsia
- Size
- MLXL
- M
- L
- XL
- sub fieldProductDrop
- type Mobile Phones
- id 7657958801461
- title Cool Phone 14
- url /products/cool-phone-14
- type Mobile Phones
- featured_image files/cool-phone-14-714762.png
- featured_image | img_tag Liquid error (sections/metafields-reference line 291): image_url must define width or height
- variants ProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDrop
- first_available_variant.id
- selected_or_first_available_variant.id 43776968949813
- options ColorSize
- options_by_name['Color'] ProductOptionDrop
- options_with_values ProductOptionDropProductOptionDrop
- Color
- Slate GrayLight BlueFuchsia
- Slate Gray
- Light Blue
- Fuchsia
- Size
- MLXL
- M
- L
- XL
- sub fieldProductDrop
- type Mobile Phones
- id 7657958801461
- title Cool Phone 14
- url /products/cool-phone-14
- type Mobile Phones
- featured_image files/cool-phone-14-714762.png
- featured_image | img_tag Liquid error (sections/metafields-reference line 362): image_url must define width or height
- variants ProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDrop
- first_available_variant.id
- selected_or_first_available_variant.id 43776968949813
- options ColorSize
- options_by_name['Color'] ProductOptionDrop
- options_with_values ProductOptionDropProductOptionDrop
- Color
- Slate GrayLight BlueFuchsia
- Slate Gray
- Light Blue
- Fuchsia
- Size
- MLXL
- M
- L
- XL
- sub fieldProductDrop
- type Mobile Phones
- id 7657958801461
- title Cool Phone 14
- url /products/cool-phone-14
- type Mobile Phones
- featured_image files/cool-phone-14-714762.png
- featured_image | img_tag Liquid error (sections/metafields-reference line 435): image_url must define width or height
- variants ProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDrop
- first_available_variant.id
- selected_or_first_available_variant.id 43776968949813
- options ColorSize
- options_by_name['Color'] ProductOptionDrop
- options_with_values ProductOptionDropProductOptionDrop
- Color
- Slate GrayLight BlueFuchsia
- Slate Gray
- Light Blue
- Fuchsia
- Size
- MLXL
- M
- L
- XL
- sub fieldProductDrop
- type Mobile Phones
- id 7657958801461
- title Cool Phone 14
- url /products/cool-phone-14
- type Mobile Phones
- featured_image files/cool-phone-14-714762.png
- featured_image | img_tag Liquid error (sections/metafields-reference line 513): image_url must define width or height
- variants ProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDrop
- first_available_variant.id
- selected_or_first_available_variant.id 43776968949813
- options ColorSize
- options_by_name['Color'] ProductOptionDrop
- options_with_values ProductOptionDropProductOptionDrop
- Color
- Slate GrayLight BlueFuchsia
- Slate Gray
- Light Blue
- Fuchsia
- Size
- MLXL
- M
- L
- XL
- sub fieldProductDrop
- type Mobile Phones
- id 7657958801461
- title Cool Phone 14
- url /products/cool-phone-14
- type Mobile Phones
- featured_image files/cool-phone-14-714762.png
- featured_image | img_tag Liquid error (sections/metafields-reference line 594): image_url must define width or height
- variants ProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDrop
- first_available_variant.id
- selected_or_first_available_variant.id 43776968949813
- options ColorSize
- options_by_name['Color'] ProductOptionDrop
- options_with_values ProductOptionDropProductOptionDrop
- Color
- Slate GrayLight BlueFuchsia
- Slate Gray
- Light Blue
- Fuchsia
- Size
- MLXL
- M
- L
- XL
- sub fieldProductDrop
- type Mobile Phones
- id 7657958604853
- title Cool Phone 15
- url /products/cool-phone-15
- type Mobile Phones
- featured_image files/cool-phone-15-601189.png
- featured_image | img_tag Liquid error (sections/metafields-reference line 594): image_url must define width or height
- variants ProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDrop
- first_available_variant.id
- selected_or_first_available_variant.id 43776968425525
- options MemoryColor
- options_by_name['Color'] ProductOptionDrop
- options_with_values ProductOptionDropProductOptionDrop
- Memory
- 64128256512
- 64
- 128
- 256
- 512
- Color
- BlackBlue
- Black
- Blue
- sub fieldProductDrop
- type Mobile Phones
- id 7657958604853
- title Cool Phone 15
- url /products/cool-phone-15
- type Mobile Phones
- featured_image files/cool-phone-15-601189.png
- featured_image | img_tag Liquid error (sections/metafields-reference line 513): image_url must define width or height
- variants ProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDrop
- first_available_variant.id
- selected_or_first_available_variant.id 43776968425525
- options MemoryColor
- options_by_name['Color'] ProductOptionDrop
- options_with_values ProductOptionDropProductOptionDrop
- Memory
- 64128256512
- 64
- 128
- 256
- 512
- Color
- BlackBlue
- Black
- Blue
- sub fieldProductDrop
- type Mobile Phones
- id 7657958604853
- title Cool Phone 15
- url /products/cool-phone-15
- type Mobile Phones
- featured_image files/cool-phone-15-601189.png
- featured_image | img_tag Liquid error (sections/metafields-reference line 435): image_url must define width or height
- variants ProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDrop
- first_available_variant.id
- selected_or_first_available_variant.id 43776968425525
- options MemoryColor
- options_by_name['Color'] ProductOptionDrop
- options_with_values ProductOptionDropProductOptionDrop
- Memory
- 64128256512
- 64
- 128
- 256
- 512
- Color
- BlackBlue
- Black
- Blue
- sub fieldProductDrop
- type Mobile Phones
- id 7657958604853
- title Cool Phone 15
- url /products/cool-phone-15
- type Mobile Phones
- featured_image files/cool-phone-15-601189.png
- featured_image | img_tag Liquid error (sections/metafields-reference line 362): image_url must define width or height
- variants ProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDrop
- first_available_variant.id
- selected_or_first_available_variant.id 43776968425525
- options MemoryColor
- options_by_name['Color'] ProductOptionDrop
- options_with_values ProductOptionDropProductOptionDrop
- Memory
- 64128256512
- 64
- 128
- 256
- 512
- Color
- BlackBlue
- Black
- Blue
- sub fieldProductDrop
- type Mobile Phones
- id 7657958604853
- title Cool Phone 15
- url /products/cool-phone-15
- type Mobile Phones
- featured_image files/cool-phone-15-601189.png
- featured_image | img_tag Liquid error (sections/metafields-reference line 291): image_url must define width or height
- variants ProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDrop
- first_available_variant.id
- selected_or_first_available_variant.id 43776968425525
- options MemoryColor
- options_by_name['Color'] ProductOptionDrop
- options_with_values ProductOptionDropProductOptionDrop
- Memory
- 64128256512
- 64
- 128
- 256
- 512
- Color
- BlackBlue
- Black
- Blue
- type Mobile Phones
- id 7657958604853
- title Cool Phone 15
- url /products/cool-phone-15
- type Mobile Phones
- featured_image files/cool-phone-15-601189.png
- featured_image | img_tag Liquid error (sections/metafields-reference line 224): image_url must define width or height
- variants ProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDropProductVariantDrop
- first_available_variant.id
- selected_or_first_available_variant.id 43776968425525
- options MemoryColor
- options_by_name['Color'] ProductOptionDrop
- options_with_values ProductOptionDropProductOptionDrop
- Memory
- 64128256512
- 64
- 128
- 256
- 512
- Color
- BlackBlue
- Black
- Blue
-
-- list --
-
-- list --
-
-- list --
2. Bundle Metafield of Product from Bundle Metafield ###############
-
-- list --
-
-- list --
-
-- list --
-
-- list --
3. Bundle Metafield of Product from Bundle Metafield from Product Bundle from Bundle Metafield ###############
-
-- list --
-
-- list --
-
-- list --
-
-- list --
4. Bundle Metafield of Product from Bundle Metafield from Product Bundle from Bundle Metafield ###############
-
-- list --
-
-- list --
-
-- list --
-
-- list --
4. Bundle Metafield of Product from Bundle Metafield from Product Bundle from Bundle Metafield ###############
-
-- list --
-
-- list --
-
-- list --
-
-- list --
5. Bundle Metafield of Product from Bundle Metafield from Product Bundle from Bundle Metafield ###############
-
-- list --
-
-- list --
-
-- list --
-
-- list --
-
-- list --
-
-- list --
-
-- list --
-
-- list --
-
-- list --
-
-- list --
5. Bundle Metafield of Product from Bundle Metafield from Product Bundle from Bundle Metafield ###############
-
-- list --
-
-- list --
-
-- list --
-
-- list --
4. Bundle Metafield of Product from Bundle Metafield from Product Bundle from Bundle Metafield ###############
-
-- list --
-
-- list --
-
-- list --
-
-- list --
4. Bundle Metafield of Product from Bundle Metafield from Product Bundle from Bundle Metafield ###############
-
-- list --
-
-- list --
-
-- list --
-
-- list --
3. Bundle Metafield of Product from Bundle Metafield from Product Bundle from Bundle Metafield ###############
-
-- list --
-
-- list --
-
-- list --
-
-- list --
2. Bundle Metafield of Product from Bundle Metafield ###############
-
-- list --
Variant | product.variants[2]
variant: ProductVariantDrop
variant id: 43776969015349
variant title: Slate Gray / XL
variant product id: 7657958801461
variant SKU:
variant url: /products/cool-phone-14?variant=43776969015349
variant available: false
variant inventory_quantity: 0
variant inventory_management: shopify
variant image:
variant image | img_tag: Liquid error (sections/metafields-reference line 709): invalid url input
variant options: Slate GrayXL
variant option1: Slate Gray
variant option2: XL
variant option3:
variant options.size: 2
- example: (loop through options)
-
-- list --
- Slate Gray
- XL
variant price: 150000
variant unit_price:
Metafields | variants.metafields
variant metafields.namespace.key:
-
-- list --
variant metafields.type: {}
variant metafields.value: {}
Product List
Product list: ProductListDrop
Collection
product: all
Collection List
product: CollectionListDrop
Link List
product: main-menu