Skip to main content

Merge fields and shortcodes

The following merge fields and shortcodes can be used in emails and messages.

Merge Fields​

CodeDescriptionCompatibility
{product_images}Slider of product's images. If there are no results, the full message is replaced by "No results found".Dialogflow
{shipping_location_check}Check if the store ships in the given country.Dialogflow
{product_attribute_terms}Attribute terms list of a product's attribute.Dialogflow
{product_attribute_name}Attribute name of an attribute term.Dialogflow
{category_link}Category page link.Dialogflow
{tag_link}Tag page link.Dialogflow
{product_name}Product name.Dialogflow, Automated Messages
{product_image}Product image.Dialogflow, Automated Messages
{product_price}Product price.Dialogflow, Automated Messages
{product_description}Product description.Dialogflow, Automated Messages
{product_rating}Product rating. If the product has no ratings yet, the full message is replaced by "[product name] has no ratings or reviews yet.".Dialogflow, Automated Messages
{product_link}Product link.Dialogflow, Automated Messages
{shipping_locations}List of the shipping countries.Dialogflow, Messages, Automated Messages
{shop_link}Shop link.Dialogflow, Messages, Automated messages
{cart_link}Cart link.Dialogflow, Messages, Automated Messages
{cart}List of the products in the user's cart. If the cart is empty, the full message is replaced by "Your cart is currently empty".Dialogflow, Automated Messages
{order_status}Status of the last user's order. If the user has never placed an order, the full message is replaced by "You haven't placed an order yet".Dialogflow, Automated Messages
{order_details}Details of the last order user's order. If the user has never placed an order, the full message is replaced by "You haven't placed an order yet".Dialogflow, Automated Messages
{product_card}Product card. Optional attributes:
• id - The product ID.
• link-type - The action on user click. Available values: purchase, checkout, link. Default: purchase.
• link-text - The button text. Default: Purchase.
Dialogflow, Messages, Automated Messages
{products_slider}Search for the products matching the given attributes and display them in a slider of products cards. If there are no results, the full message is replaced by "No results found". Optional attributes:
• id - The products IDs separated by commas. If this attribute is set, all other attributes are ignored.
• tag - Display only the products of the given tag.
• category - Display only the products of the given category.
• discounted - Set it to true to show only the products in promotions.
• rating - Display only the products with a rating equal or bigger than the given value. Enter a value from 1 to 5.
• max-price - Display only the products with a price equal or smaller than the given value. Enter a number.
• min-price - Display only the products with a price equal or bigger than the given value. Enter a number.
• attribute - Display only the products with the given attribute term.
• link-type - The action on user click. Available values: purchase, checkout, link. Default: purchase.
• link-text - The button text. Default: Purchase.
• language - The language code of the products to display.
Dialogflow, Messages, Automated Messages
{payment_methods}Available payment methods.Dialogflow, Messages, Automated Messages
{coupon}Generate a coupon code. Optional attributes:
• discount - The coupon discount in percentage.
• expiration - The coupon expiration. Example: '60 seconds', '5 hours', '2 days'.
Dialogflow, Messages, Automated Messages
{product_names}Products names.Only where specified
{discount_price}Discounted product price or total discounted price of multiple products.Only where specified
{original_price}Original product price or total original price of multiple products.Only where specified
{carts}Multiple users carts list with products.Only where specified
{purchase_button}Purchase product button.Only where specified
{html_product_card}Product details card.Email
{html_products_list}List of products details cards.Email

Rich Messages​

ShortcodeDescription
[woocommerce-button name="" ids="" coupon="" checkout="true"]Add a product or multiple products to the user's cart. Optionally apply a coupon code, and redirect the user to the checkout page.