Skip to main content
Documentation/WooCommerce/Dynamic Data & Templating/Dynamic Fields

Dynamic Fields

WooCommerce fields display product and category data in your designs. See Dynamic Data for connecting a control to a field and Field Options for shared formatting and fallbacks.

Current Product

Leave a field’s Product selector unset to use the current product in a template or repeated product card. Select a product to always display that product’s data. For links to the current product, use Post Permalink.

Product Text

Product Title

Product name.

Product Description

The current product’s description.

  • Description Type — Short Description or Long Description.

Product Price Range

WooCommerce's formatted price, including a range where applicable.

Product Regular Price

The product’s regular price.

  • Disable Formatting — Output the unformatted price.

Product Sale Price

The product’s sale price.

  • Disable Formatting — Output the unformatted price.
  • Fallback to Regular Price — Use the regular price when no sale price is available.
Product Sale Price options
Product Sale Price options

Product Rating

The product’s rating or number of ratings or reviews.

  • Rating Type — Rating, Rating Count, or Review Count.

Product Sale

Displays your chosen wording when the product is on sale.

  • Sale Text — The text to display.

Product SKU

Product SKU.

Product Stock

Displays wording for the product’s stock status.

  • In Stock Text, Out Of Stock Text, On Backorder Text — The wording for each status.

Product Terms

Lists terms assigned to the product.

  • Taxonomy — Choose categories, tags, brands, or another product taxonomy available on your site.
  • Link — Link each term to its archive.
  • Separator — Text between terms.

Images and Galleries

Product Image

Main product image for an image control. Shared Fallback Image supplies an image when it is missing.

Product Image (URL)

Main product image URL for a URL-compatible control.

Displays the product’s gallery images.

  • Exclude Product Image — Remove the main product image from the gallery.
Product Gallery options
Product Gallery options

Displays one image from the product’s gallery.

  • Image Index — Choose the image by its position, starting at 0.
  • Fallback Image — An image to use when the selected image is missing.

Product Categories

These fields appear under Term and use the current product category in an archive or Term Loop.

Product Category Image

Category image, with shared Fallback Image.

Product Category Count

The category's WooCommerce product count, with shared text formatting and fallback controls.