WOOCOMMERCE DYNAMIC TAGS
Global dynamic tags are universal and can be used across all templates and widgets.
Important:

Product Tags
Description: This category includes tags that are specifically related to products. These tags are typically used within product single page templates and loops, such as Elementor loops or JetEngine listing grids.
ADVANCED PRICE Since v2.3.0
The Advanced Price tag returns the formatted price of a product, adhering to the WooCommerce settings. It can also optionally display tax information based on the store's tax configuration.
ADVANCED PRICE Since v2.3.0
Usage: Available in Product Single Template, Loop, and Listing Grid.
Scope: Current product only.
Settings:
- Show Tax Information: Enable this option to display tax information alongside the price. Example: `£100 (ex VAT)`
Macro Commands:
None
Example Usage:
If the product is priced at $100
and the store has a standard VAT of `20%`, the output with tax information enabled would be:
"$100 (ex VAT)" or "$120 (incl. VAT)", depending on the WooCommerce settings.
ADVANCED STOCK Since v1.0
The Advanced Stock tag provides the remaining stock quantity for a specific product.
ADVANCED STOCK Since v1.0
Usage: Available in Product Single Template, Loop, and Listing Grid.
Scope: Current product only.
Settings:
- Stock Text: Define the text to be displayed when the stock threshold is met. The text can include the `{remainingstock}` macro. Example: `"Only {remainingstock} left in stock!"`
- Stock Threshold: Set the minimum stock level required for the text to be displayed. If the stock quantity is below the threshold, the message will not appear.
Macro Commands:
{remainingstock}
- Displays the current remaining stock quantity.
Example Usage:
If the stock threshold is set to 5
, and the product's stock quantity is 3
, the output could look like:
"Only 3 left in stock!"
If the stock quantity is 6
, and the threshold is 5
, the output will be:
"Only 6 left in stock!"
If the stock quantity is 4
, and the threshold is 5
, no message will be displayed.
ADVANCED SALE BADGE Modified in v2.0.1
The Advanced Sale Badge tag displays discount information for a specific product in various formats, including text, numeric values, and percentages.
ADVANCED SALE BADGE Modified in v2.0.1
Usage: Available in Product Single Template, Loop, and Listing Grid.
Scope: Current product only.
Settings:
- Sale Text: Define the sale text to be displayed. You can use the provided macros to dynamically insert sale values. Example: `"Save {sale_number} today!"`
- Membership Sale Text: Specify the text for WooCommerce Membership-based discounts. This text will only appear for users with relevant memberships. Example: `"Members save {sale_percentage}%!"`
- Free Text: If the discount amount is `0`, specify the text to be displayed. Leave blank if no text is needed for free products. Example: `"Free for members!"`
- Currency and Format: Enable this option to apply the **WooCommerce currency settings** and number formatting to the output.
Macro Commands:
{sale_number}
- Returns the discount amount in the configured currency.{sale_percentage}
- Returns the percentage value of the discount.
Example Usage:
If a product is originally priced at $100
and is discounted to $80
, the output could look like:
"Save $20 today!" (using {sale_number}
)
"Save 20%!" (using {sale_percentage}
)
If the product is marked as free for members, the `Free Text` setting will display the configured message. Example: `"Free for members!"`
View Image
FEATURED BADGE Since v1.0
The Featured Badge tag displays a custom text or WooCommerce's default "Featured" text when a product is marked as featured.
FEATURED BADGE Since v1.0
Usage: Available in Product Single Template, Loop, and Listing Grid.
Scope: Current product only.
Settings:
- Enable Custom Text: - When enabled, a custom text can be defined to replace WooCommerce’s default "Featured" label. - If left disabled, the default WooCommerce "Featured" text will be displayed. - Example: `"Hot Item!"`, `"Top Pick!"`, or `"Editor's Choice!"`
Macro Commands:
None
Example Usage:
If the product is marked as featured and the custom text is enabled with the value `"Editor's Choice!"` will be display. View Image
PRODUCT ATTRIBUTES Modified in v2.4.0
The Product Attributes tag displays product attributes in various formats, such as label, value, or both, with optional output styles like plain text, lists, or tables.
PRODUCT ATTRIBUTES Modified in v2.4.0
Usage: Available in Product Single Template, Loop, and Listing Grid.
Scope: Current product only.
Settings:
-
Display Type:
Choose how to display the attribute information. Options:
- Label: Only displays the attribute name.
- Value: Only displays the attribute values.
- Label/Value: Displays both the attribute name and its values.
- Linkable: Enable this option to make the attributes linkable to their archive pages.
- Attributes: Select specific attributes to display or choose to show all attributes. Multiple selection is supported.
-
Output Style:
Choose how the output should be structured:
- OL: Ordered list (`<ol>`)
- UL: Unordered list (`<ul>`)
- Plain: Delimiter-separated text
- Table: Table layout with optional custom headers
Note: When using the
Table
style, you can define custom headers. InPlain
mode, a custom delimiter can be set.
Macro Commands:
None
Example Usage:
If the product has the following attributes: - Color: Red, Blue, Green - Size: S, M, L The output in `Label/Value` mode and `Table` format could look like:
Attribute | Values |
---|---|
Color | Red, Blue, Green |
Size | S, M, L |
In `Plain` mode with a custom delimiter set to `" | "`, the output would be: Color: Red | Blue | Green | Size: S | M | L
View Image
PRODUCT DESCRIPTION Since v1.0
The Product Description tag returns the complete product description. Optionally, a "Read More" function can be enabled for lengthy content.
PRODUCT DESCRIPTION Since v1.0
Usage: Available in Product Single Template, Loop, and Listing Grid.
Scope: Current product only.
Settings:
- Read More Toggle: Enable this option to limit the displayed content by character count and display a "Read More" link.
- Character Length: Set the number of characters to display before the "Read More" link appears. Example: `150`
- Read More Text: Define the clickable text for the "Read More" link. Example: `"Continue Reading..."`, `"Read Full Description"`
- Anchor ID: Specify the target `ID` where the "Read More" link should scroll to. Example: `"#full-description"`
Macro Commands:
None
Example Usage:
If the character length is set to `100` and the product description is longer, the output will look like: `"This is the beginning of the product description... " Read More`
View Image
PRODUCT DIMENSION, PRODUCT HEIGHT, PRODUCT LENGHT, PRODUCT WIDTH, PRODUCT WEIGHT Modified in v2.4.0
The Product Dimensions tags provide dynamic data related to the product's height, length, width, weight, and overall dimensions. These tags can optionally convert units from WooCommerce's default settings to another specified unit.
PRODUCT DIMENSION, PRODUCT HEIGHT, PRODUCT LENGHT, PRODUCT WIDTH, PRODUCT WEIGHT Modified in v2.4.0
Usage: Available in Product Single Template, Loop, and Listing Grid.
Scope: Current product only.
Tags Included:
- Product Height: Returns the product height.
- Product Length: Returns the product length.
- Product Width: Returns the product width.
- Product Weight: Returns the product weight.
- Product Dimensions: Combines the above tags into a single formatted output (e.g., "Height x Length x Width").
Settings:
You can only convert units within their respective measurement categories. Cross-category conversions (e.g., kg to m) are not supported.- Convert From: Specify the source unit (e.g., `cm`, `mm`, `kg`).
- Convert To: Specify the target unit to convert to (e.g., `in`, `ft`, `yd`).
- Store Unit: Displays the data in the original WooCommerce-defined unit without conversion.
Macro Commands:
None
Example Usage:
If the product is defined with the following dimensions:
- Height: 50 cm
- Length: 120 cm
- Width: 30 cm
- Weight: 2 kg
If the `Convert To` setting is set to `in` (inches), the output would be:
- Height: 19.7 in
- Length: 47.2 in
- Width: 11.8 in
- Weight: 4.4 lb
- Dimensions: 19.7 x 47.2 x 11.8 in
NEXT / PREVIOUS PRODUCT Since v2.1.0
The Next Product and Previous Product tags allow you to create custom navigation links within a product single template, enabling users to navigate to the next or previous product in the series.
NEXT / PREVIOUS PRODUCT Since v2.1.0
Usage: Primarily for use in Product Single Templates.
Scope: Current product only.
Settings:
-
Display Type:
Choose the data to display for the next or previous product:
- Product Title: Displays the title of the next/previous product.
- Product Price: Displays the price of the next/previous product.
- Product Link: Displays a clickable link to the next/previous product.
Macro Commands:
None
Example Usage:
If the current product is "Product B", and the previous product is "Product A" and the next product is "Product C", the output could look like:
Previous: "Product A - $50" Next: "Product C - $75"
View Image
NEXT / PREVIOUS PRODUCT IMAGE Since v2.3.0
The Next Product Image and Previous Product Image tags provide the featured image of the next or previous product. This can be useful for creating visually oriented product navigation.
NEXT / PREVIOUS PRODUCT IMAGE Since v2.3.0
Usage: Primarily for use in Product Single Templates.
Scope: Current product only.
Settings:
None
Macro Commands:
None
Example Usage:
Display the featured image of the next and previous products.
Example: ``
PRODUCT TABS Since v2.2.2
The Product Tabs tag returns the content or title of a specific product tab. It supports both default WooCommerce tabs and custom tabs created via the TabManager plugin. It does not support the native WooCommerce Reviews tab.
PRODUCT TABS Since v2.2.2
Usage: Primarily for use in Product Single Templates.
Scope: Current product only.
Compatibility:
TabManager (by SkyVerge)
Additional Info:
If you're using JetEngine, you can access a Product Tab Empty condition in Dynamic Visibility to determine if a tab has content or not.
Settings:
- Tab Source: Choose whether to target the default tabs or the TabManager tabs.
- Choose Tab: Select the specific tab to use as the data source.
- Output: - Content: Displays the content of the selected tab. - Name: Displays the tab name.
Macro Commands:
None
Example Usage:
This tag is particularly useful if you want to build custom tab layouts using Elementor's Nested Tabs or Accordion widgets. For example, you can use the content output to dynamically display tab content within a custom accordion layout.
View Image
PRODUCT SHIPPING CLASS Modified in v2.4.0
The Product Shipping Class tag retrieves the shipping class information for a product, if defined. It allows you to display the class name, slug, or description. Only one option can be selected at a time.
PRODUCT SHIPPING CLASS Modified in v2.4.0
Usage: Available in Product Single Template, Loop, and Listing Grid.
Scope: Current product only.
Settings:
-
Return Value:
Select which shipping class information to display:
- Name: Displays the shipping class name (e.g., "Heavy Items").
- Slug: Displays the shipping class slug (e.g., "heavy-items").
- Description: Displays the shipping class description (if available).
Macro Commands:
None
Example Usage:
If a product is assigned to the "Heavy Items" shipping class with the slug "heavy-items" and a description of "Oversized products that require special handling," the output can be configured to display:
- Name: Heavy Items
- Slug: heavy-items
- Description: Oversized products that require special handling
PURCHASED BADGE Since v1.0.3
The Purchased badge tag displays a text if the product has already been purchased by the user.
PURCHASED BADGE Since v1.0.3
Usage: Available in Product Single Template, Loop, and Listing Grid.
Scope: Current product only.
Settings:
- Purchased text field
Macro Commands:
None
Example Usage:
Text display or indication that you have previously purchased the product. Useful if the product is limited.
View Image
SALE TIME Since v1.0.0
If the product is periodically set on sale it will return the date. Useful for countdown widgets.
SALE TIME Since v1.0.0
Usage: Available in Product Single Template, Loop, and Listing Grid.
Scope: Current product only.
Settings:
- None
Macro Commands:
None
Example Usage:
You can set it in the Elementor countdown widget, for example, so the counter shows how long the promotion is live.
View ImageCustomer Tags
Description: These tags provide dynamic data related to the current logged-in customer. They can be used anywhere across the website, not just on the My Account page.
- Note: The tags will always consider the currently logged-in user. If the user is a guest, no data will be displayed.
Cart Tags
Description: These tags provide data related to the shopping cart. They can be placed anywhere on the site and will display cart information for the current visitor or logged-in user.
- Note: The cart tags do not update via AJAX at this time. AJAX support is planned for version 2.5.0.