See the product.liquid code below.
{% comment %}
product {Object}
The product object
layout {String}
The layout type
is_product_modal {Boolean}
Is the snippet being loaded in a Quick shop
is_featured_product {Boolean}
Is the snippet being loaded in a Featured product
onboarding {Boolean}
Is there onboarding content
show_dynamic_checkout_button {Boolean}
If true, show dynamic checkout button
select_first_available_variant {Boolean}
If true, select the first available variant
gallery_aspect_ratio {String}
This is the gallery aspect ratio, can be one of 'natural', 'short', 'square', 'long'
gallery_thumbnail_position {String}
This is the gallery thumbnail position, can be one of 'below', or 'left'
gallery_image_crop {Boolean}
Whether to crop images
gallery_hover_zoom {String}
This is the hover zoom setting, which is either 'disabled', 'separate', or 'replace'
gallery_click_to_zoom {String}
This is the click to zoom setting, which is either 'disabled', 'mobile', 'desktop', or 'always'
{% endcomment %}
{% assign onboarding = onboarding | default: false %}
{% assign layout = layout | default: nil %}
{% assign is_featured_product = is_featured_product | default: false %}
{% liquid
assign selected_variant = product.selected_variant
if product.variants.size == 1 or select_first_available_variant
assign selected_variant = product.selected_or_first_available_variant
endif
%}
{% assign compare_at_price = selected_variant.compare_at_price %}
{% assign price = selected_variant.price %}
{% assign sku = selected_variant.sku %}
{% assign product_available = product.available %}
{% comment %}For a potential divider in the product.description we need to split the content{% endcomment %}
{% assign readmore_split = product.description | split: '' %}
{% if onboarding %}
{% assign compare_at_price = 2999 %}
{% assign price = 1999 %}
{% endif %}
{% assign on_sale = false %}
{% if compare_at_price > price %}
{% assign on_sale = true %}
{% endif %}
{% assign consistent_saved = false %}
{% capture consistent_savings %}
{%
render 'consistent-savings',
variants: product.variants,
on_sale: on_sale
%}
{% endcapture %}
{% if consistent_savings contains 'true' %}
{% assign consistent_saved = true %}
{% endif %}
{%- capture share_buttons -%}
{% assign social_image = false %}
{% if product.featured_image %}
{% assign social_image = product.featured_image | img_url: '1024x' %}
{% endif %}
{% assign social_url = shop.url | append: product.url %}
{%-
render 'share-buttons',
snippet_title: 'general.share_buttons.title',
social_image: social_image,
social_title: product.title,
social_url: social_url
-%}
{%- endcapture -%}
{% if readmore_split[1] != blank and is_featured_product != true and is_product_modal != true %}
{{ readmore_split[1] }}
{% endif %}
