remote_ product
A product that comes from a remote source, inheriting all product functionality and also providing additional context about the remote source.
Properties
Returns
trueif at least one of the variants of the product is available. Returnsfalseif not.For a variant to be available, it needs to meet one of the following criteria:
- The
is greater than 0. - The
is set tocontinue. - The
isnil. - The variant has an associated delivery profile with a valid shipping rate.
- The
- categorycategory
The taxonomy category for the product
The lowest compare at price of any variants of the product in the currency's subunit.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
TipUse money filters to output a formatted price.
Tip:Use money filters to output a formatted price.
Tip: Use <a href="/docs/api/liquid/filters/money-filters">money filters</a> to output a formatted price.
The highest compare at price of any variants of the product in the currency's subunit.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
TipUse money filters to output a formatted price.
Tip:Use money filters to output a formatted price.
Tip: Use <a href="/docs/api/liquid/filters/money-filters">money filters</a> to output a formatted price.
The lowest compare at price of any variants of the product in the currency's subunit. This is the same as
.The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
TipUse money filters to output a formatted price.
Tip:Use money filters to output a formatted price.
Tip: Use <a href="/docs/api/liquid/filters/money-filters">money filters</a> to output a formatted price.
Returns
trueif the variant compare at prices of the product vary. Returnsfalseif not.The description of the product.
NoteThis is the same value as
product.description.Note:This is the same value as
product.description.Note: This is the same value as <a href="/docs/api/liquid/objects/product#product-description"><code>product.description</code></a>.
A timestamp for when the product was created.
TipUse the
datefilter to format the timestamp.Tip:Use the
datefilter to format the timestamp.Tip: Use the <a href="/docs/api/liquid/filters/date"><code>date</code> filter</a> to format the timestamp.
The description of the product.
NoteThis is the same value as
product.content. The description of remote products is modified to include a link to the remote store's shipping and refund policies, if the shop has defined them.Note:This is the same value as
product.content. The description of remote products is modified to include a link to the remote store's shipping and refund policies, if the shop has defined them.Note: This is the same value as <a href="/docs/api/liquid/objects/product#product-content"><code>product.content</code></a>. The description of remote products is modified to include a link to the remote store's shipping and refund policies, if the shop has defined them.
The first (featured) media attached to the product.
NoteDepending on rendering context, the featured media of remote products may be modified to include a badge highlighting the remote source.
Note:Depending on rendering context, the featured media of remote products may be modified to include a badge highlighting the remote source.
Note: Depending on rendering context, the featured media of remote products may be modified to include a badge highlighting the remote source.
TipYou can use media filters to output media URLs and displays. To learn about how to include media in your theme, refer to Support product media.
Tip:You can use media filters to output media URLs and displays. To learn about how to include media in your theme, refer to Support product media.
Tip: You can use <a href="/docs/api/liquid/filters/media-filters">media filters</a> to output media URLs and displays. To learn about how to include media in your theme, refer to <a href="/themes/product-merchandising/media/support-media">Support product media</a>.
The first available variant of the product.
For a variant to be available, it needs to meet one of the following criteria:
- The
is greater than 0. - The
is set tocontinue. - The
isnil.
- The
Returns
trueif the product is a gift card. Returnsfalseif not.Returns
trueif the product doesn't have any options. Returnsfalseif not.The media attached to the product, sorted by the date it was added to the product.
NoteDepending on rendering context, the media of remote products may be modified to include a badge highlighting the remote source.
Note:Depending on rendering context, the media of remote products may be modified to include a badge highlighting the remote source.
Note: Depending on rendering context, the media of remote products may be modified to include a badge highlighting the remote source.
TipYou can use media filters to output media URLs and displays. To learn about how to include media in your theme, refer to Support product media.
Tip:You can use media filters to output media URLs and displays. To learn about how to include media in your theme, refer to Support product media.
Tip: You can use <a href="/docs/api/liquid/filters/media-filters">media filters</a> to output media URLs and displays. To learn about how to include media in your theme, refer to <a href="/themes/product-merchandising/media/support-media">Support product media</a>.
- metafieldsmetafields
The metafields applied to the product.
NoteOnly standard metafields set by the remote store are included. Custom metafields are not.
Note:Only standard metafields set by the remote store are included. Custom metafields are not.
Note: Only standard metafields set by the remote store are included. Custom metafields are not.
The option names of the product.
ExampleOutput the optionsYou can use the
sizefilter with dot notation to determine how many options a product has.{% if product.options.size > 0 -%}{% for option in product.options -%}- {{ option }}{%- endfor %}{%- endif %}Code
{% if product.options.size > 0 -%} {% for option in product.options -%} - {{ option }} {%- endfor %} {%- endif %}Data
{ "product": { "options": [ "Size", "Strength" ] } }Output
- Size- StrengthOutput
- Size - Strength- options_
by_ nameoptions_ by_ name Allows you to access a specific product option by its name.
ExampleOutput the values for a specific optionWhen accessing a specific option, the name is case-insensitive.
<label>Strength<select>{%- for value in product.options_by_name['strength'].values %}<option>{{ value }}</option>{%- endfor %}</select></label>Code
<label> Strength <select> {%- for value in product.options_by_name['strength'].values %} <option>{{ value }}</option> {%- endfor %} </select> </label>Data
{ "product": { "options_by_name": {} } }Output
<label>Strength<select><option>Low</option><option>Medium</option><option>High</option></select></label>Output
<label> Strength <select> <option>Low</option> <option>Medium</option> <option>High</option> </select> </label>- options_
with_ valuesoptions_ with_ values array of product_option The options on the product.
The lowest price of any variants of the product in the currency's subunit.
Note: This is the same value as <a href="/docs/api/liquid/objects/product#product-price_min"><code><span class="PreventFireFoxApplyingGapToWBR">product.price<wbr/>_min</span></code></a>.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
TipUse money filters to output a formatted price.
Tip:Use money filters to output a formatted price.
Tip: Use <a href="/docs/api/liquid/filters/money-filters">money filters</a> to output a formatted price.
The highest price of any variants of the product in the currency's subunit.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
TipUse money filters to output a formatted price.
Tip:Use money filters to output a formatted price.
Tip: Use <a href="/docs/api/liquid/filters/money-filters">money filters</a> to output a formatted price.
The lowest price of any variants of the product in the currency's subunit.
NoteThis is the same value as
product.price.Note:This is the same value as
product.price.Note: This is the same value as <a href="/docs/api/liquid/objects/product#product-price"><code>product.price</code></a>.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
TipUse money filters to output a formatted price.
Tip:Use money filters to output a formatted price.
Tip: Use <a href="/docs/api/liquid/filters/money-filters">money filters</a> to output a formatted price.
Returns
trueif the product's variant prices vary. Returnsfalseif not.A timestamp for when the product was published.
TipUse the
datefilter to format the timestamp.Tip:Use the
datefilter to format the timestamp.Tip: Use the <a href="/docs/api/liquid/filters/date"><code>date</code> filter</a> to format the timestamp.
Returns
trueif the product has at least one variant with quantity price breaks in the current customer context. Returnsfalseif not.- remote_
detailsremote_ details Information about the remote source from which the remote product came from.
Returns
trueif all of the variants of the product require a selling plan. Returnsfalseif not.Note: A variant requires a selling plan if <a href="/docs/api/liquid/objects/variant#variant-requires_selling_plan"><code><span class="PreventFireFoxApplyingGapToWBR">variant.requires<wbr/>_selling<wbr/>_plan</span></code></a> is <code>true</code>.
- selected_
or_ first_ available_ selling_ plan_ allocationselected_ or_ first_ available_ selling_ plan_ allocation The currently selected, or first available, selling plan allocation.
The following logic is used to determine which selling plan allocation is returned:
Selling plan allocation Return criteria The currently selected allocation Returned if a variant and selling plan are selected.
The selected variant is determined by thevariantURL parameter, and the selected selling plan is determined by theURL parameter.The first allocation on the first available variant Returned if no allocation is currently selected. The first allocation on the first variant Returned if no allocation is currently selected, and there are no available variants. If the product doesn't have any selling plans, then
nilis returned.The currently selected or first available variant of the product.
If a variant is selected, it will be returned, regardless of its availability. Otherwise, the first available variant is returned. If no available variant exists, the first variant is returned.
A selected variant is determined by the following criteria:
- On product pages, it is based on the variant ID set in the
variantURL parameter. - In search results and filtered collections, it is the most relevant variant based on search terms and applied filters.
For a variant to be available, it needs to meet one of the following criteria:
- The
is greater than 0. - The
is set tocontinue. - The
isnil.
- On product pages, it is based on the variant ID set in the
- selected_
selling_ planselected_ selling_ plan The currently selected selling plan.
If no selling plan is selected, then
nilis returned.NoteThe selected selling plan is determined by the
URL parameter.Note:The selected selling plan is determined by the
URL parameter.Note: The selected selling plan is determined by the <code><span class="PreventFireFoxApplyingGapToWBR">selling<wbr/>_plan</span></code> URL parameter.
- selected_
selling_ plan_ allocationselected_ selling_ plan_ allocation The currently selected selling plan allocation for the currently selected variant.
If no variant and selling plan are selected, then
nilis returned.NoteThe selected variant is determined by the
variantURL parameter, and the selected selling plan is determined by theURL parameter.Note:The selected variant is determined by the
variantURL parameter, and the selected selling plan is determined by theURL parameter.Note: The selected variant is determined by the <code>variant</code> URL parameter, and the selected selling plan is determined by the <code><span class="PreventFireFoxApplyingGapToWBR">selling<wbr/>_plan</span></code> URL parameter.
The currently selected variant of the product.
If no variant is currently selected, then
nilis returned.NoteOn product pages, it is based on the variant ID set in the
variantURL parameter. In search results and filtered collections, it is the most relevant variant based on search terms and applied filters.Note:On product pages, it is based on the variant ID set in the
variantURL parameter. In search results and filtered collections, it is the most relevant variant based on search terms and applied filters.Note: On product pages, it is based on the variant ID set in the <code>variant</code> URL parameter. In search results and filtered collections, it is the most relevant variant based on search terms and applied filters.
- selling_
plan_ groupsselling_ plan_ groups array of selling_plan_group The selling plan groups that the variants of the product are included in.
The name of the custom template assigned to the product.
NoteRemote products have pre-determined dedicated template names, always prefixed with "remote." This allows them to be managed independently of regular product templates. E.g. "remote.seller"
Note:Remote products have pre-determined dedicated template names, always prefixed with "remote." This allows them to be managed independently of regular product templates. E.g. "remote.seller"
Note: Remote products have pre-determined dedicated template names, always prefixed with "remote." This allows them to be managed independently of regular product templates. E.g. "remote.seller"
The title of the product.
NoteIn a cart context, the title of a remote product is appended with "Sold by {store name}".
Note:In a cart context, the title of a remote product is appended with "Sold by {store name}".
Note: In a cart context, the title of a remote product is appended with "Sold by {store name}".
The relative URL of the product.
If a product is rendered in search results or a filtered collection, then the URL contains the
variantparameter of the most relevant variant./products/gorgeous-wooden-computer?variant=1234567890/products/gorgeous-wooden-computer?variant=1234567890If a product is rendered as a product recommendation, then the URL contains tracking parameters:
/products/gorgeous-wooden-computer?pr_choice=default&pr_prod_strat=description&pr_rec_pid=13&pr_ref_pid=17&pr_seq=alternating/products/gorgeous-wooden-computer?pr_choice=default&pr_prod_strat=description&pr_rec_pid=13&pr_ref_pid=17&pr_seq=alternatingThe variants of the product.
NoteReturns a maximum of 250 variants when unpaginated. Tip: Use the paginate tag to choose how many variants to show per page, up to a limit of 50.
Note:Returns a maximum of 250 variants when unpaginated. Tip: Use the paginate tag to choose how many variants to show per page, up to a limit of 50.
Note: Returns a maximum of 250 variants when unpaginated. Tip: Use the <a href="/docs/api/liquid/tags/paginate">paginate</a> tag to choose how many variants to show per page, up to a limit of 50.