Data Expressions for Commerce Product Components

Use these data expressions in any component on the product page of your B2B store.

Required Editions

Expression Description
{!Product.Details.id} ID of the product.
{!Product.Details.fields.isActive} Indicates whether the product is active or not.
{!Product.Details.fields.isArchived} Indicates whether the product is archived.
{!Product.Details.fields.CreatedById} ID of the user who created the product.
{!Product.Details.fields.CreatedDate} Date the product was created.
{!Product.Details.fields.CurrencyIsoCode} Three-letter ISO 4217 currency code associated with the product.
{!Product.Details.fields.IsDeleted} Indicates whether the object has been moved to the Recycle Bin or not.
{!Product.Details.fields.DisplayUrl} Display URL of the product.
{!Product.Details.fields.ExternalDataSourceId} External data source ID of the product.
{!Product.Details.fields.ExternalId} External ID of the product.
{!Product.Details.fields.LastModifiedById} ID of the user who last modified the product.
{!Product.Details.fields.LastModifiedDate} Timestamp for when the current user last modified the product.
{!Product.Details.fields.LastReferencedDate} Timestamp for when the current user last viewed a record related to the product.
{!Product.Details.fields.LastViewedDate} Timestamp for when the current user last viewed the product.
{!Product.Details.fields.ProductClass} Product class of the product.
{!Product.Details.fields.ProductCode} Product code of the product.
{!Product.Details.fields.Description} Description of the product.
{!Product.Details.fields.Family} Family of the product.
{!Product.Details.fields.id} ID of the product.
{!Product.Details.fields.Name} Name of the product.
{!Product.Details.fields.StockKeepingUnit} Stock keeping unit of the product.
{!Product.Details.fields.Type}

The type of the product. Values are:

  • Base
  • Null

Values are: Base Null

{!Product.Details.fields.QuantityUnitOfMeasure} Unit of the product, for example, kilograms, liters, or cases.
{!Product.Details.fields.SystemModstamp} ISO 8601 date string indicating when a user or any automated system process, such as a trigger, updated the file.
{!Product.Details.fields.TaxPolicyId} ID of the related tax policy.
{!Product.Details.defaultImage.canViewPrice} Specifies whether the product's price can be viewed (true) or not (false).
{!Product.Details.defaultImage.id} ID of the default image for the product.
{!Product.Details.defaultImage.url} URL for the default image for the product.
{!Product.Details.defaultImage.thumbnailUrl} URL of the thumbnail for product media.
{!Product.Details.defaultImage.title} Title of the product media.
{!Product.Details.defaultImage.alternateText} Alternative text for the product media.
{!Product.Details.defaultImage.sortOrder} Sort order of a media item within a media group.
{!Product.Details.defaultImage.mediaType}

Type of product media. Values are:

  • Document
  • Image
  • Video
{!Product.Details.defaultImage.contentVersionId} ID of the latest published content version if the media is stored as a ContentDocument. If the image is a customer-provided external URL, the value is null.
{!Product.Details.variationParentId} ID of the variation parent.
{!Product.Details.productClass}

Class of the product. Values are:

  • Simple
  • Variation
  • VariationParent
{!Product.Details.variationAttributeSet.id} Variation attribute set for the product.
{!Product.Details.variationAttributeSet.developerName} Unique name of the object in the API.
{!Product.Details.purchaseQuantityRule.minimum} Minimum quantity of a product that can be purchased.
{!Product.Details.purchaseQuantityRule.maximum} Maximum quantity of a product that can be purchased.
{!Product.Details.purchaseQuantityRule.increment} Increment value of the quantity that can be purchased.
{!Product.Pricing.pricebookEntryId} ID of the price book entry for the product.
{!Product.Pricing.listPrice} List price for the product.
{!Product.Pricing.unitPrice} Unit price for the product.
{!Product.Pricing.currencyIsoCode} Three-letter ISO 4217 currency code associated with the product.
{!Product.Pricing.priceAdjustment.id} Price adjustment schedule for the product.
{!Product.Tax.taxLocaleType}

Tax type of the store. Values are:

  • Gross–Prices include tax
  • Net–Prices don’t include tax
{!Product.SelectedVariant.isValid} Indicates if the selected variant is a valid product or not.
{!Product.SelectedVariant.options} Provides options of the selected variant.