Dynamic Tags

Cart Tags (WooCommerce)

3 min read

Cart tags read the current visitor's WooCommerce cart in real time. They are ideal for abandoned cart reminders, free-shipping nudges, and "complete your order" messages.

Unlike product tags from your catalog, cart tags change as the visitor adds or removes items.

Prerequisites: WooCommerce Setup for Notifal and Cart Tags enabled under Managing Tag Categories in Settings.

See also What Are Dynamic Tags? and WooCommerce Product and Order Tags.

Available cart tags

TagShows
{cart_total}Cart contents total (excludes shipping and tax)
{cart_subtotal}Subtotal before discounts
{cart_discount}Total discount applied
{cart_item_count}Total quantity of all items
{cart_unique_products}Number of different products
{cart_coupons}Applied coupon codes (comma-separated)
{cart_url}Cart page URL
{cart_checkout_url}Checkout page URL
{cart_first_product_name}Name of the first product in the cart

All money values use your store's currency formatting.

Example messages

GoalExample
Abandoned cartYou left {cart_item_count} items worth {cart_total} in your cart
Coupon reminderYour codes ({cart_coupons}) are still applied
Checkout pushComplete checkout (in HTML or button link)
Product mentionStill thinking about {cart_first_product_name}?

Cart tags vs product tags from cart

FeatureCart tagsProduct tags + Cart Products content source
Data sourceLive cart sessionProducts linked to cart, upsells, cross-sells
UpdatesWhen cart changes (including Ajax add to cart)Rotates products from content source rules
Best forTotals, counts, checkout URLsProduct name, image, price in rotating promos

For rotating {product_name} from items in the cart, configure Content Source → Product Restrictions → Cart Products on the notification.

Display rules for cart notifications

Pair cart tags with display rules so messages show at the right moment:

  • Visitor has items in cart
  • Visitor does not have items in cart (for "start shopping" promos)
  • Specific pages (cart, checkout, product pages)

Cart tags work for guests and logged-in customers as long as WooCommerce maintains their session cart.

Empty cart behavior

When the cart is empty:

  • Count tags show 0 or empty values
  • Total tags show formatted zero or blank depending on context
  • Plan your copy so an empty cart still makes sense, or restrict the notification with display rules

Enable cart tags

  1. Go to Notifal → Settings → Tags.
  2. Under WooCommerce Tags, check Cart Tags.
  3. Save.

Cart tags only register when WooCommerce is active.

Dynamic Tags series