|
/ Documentation /CartFlows/Developer Docs/ Personalization Shortcodes in CartFlows

Personalization Shortcodes in CartFlows

Personalization shortcodes in CartFlows let you display dynamic customer and order information on your funnel steps. This helps you show relevant messages to users based on the data available during the checkout process.

You can add these shortcodes inside text elements, headings, or HTML blocks using your preferred page builder.

Why Use Personalization Shortcodes

Personalized content helps customers feel acknowledged and confident during checkout. Instead of showing a generic message, you can display information such as the customer email or name to make the message more relevant.

Example: Thank you [email protected] for your order.

Types of Personalization Shortcodes

CartFlows provides two types of personalization shortcodes.

Display Checkout Field Values

Use this shortcode to show values entered by the customer on the CartFlows Checkout page, such as first name, last name, or email address.

Shortcode Format

[cartflows_order_fields field="first_name" default="Dear"]

Parameters

field: The checkout field value you want to display

default: Text shown when the field value is not available

Examples

Display the customer first name

[cartflows_order_fields field="first_name" default="My Name"]

Display the customer last name

[cartflows_order_fields field="last_name" default="My Surname"]

You can use the same shortcode structure to display any checkout field value.

Display URL Parameter Values

Use this shortcode to display values passed through URL parameters. This is useful when sending users to a CartFlows step from another page while passing data dynamically.

Shortcode Format

[cartflows_url_fields field="first_name" default="Dear"]

Parameters

field: The URL parameter you want to display

default: Text shown when the parameter does not exist

Examples

Display first name from the URL

[cartflows_url_fields field="first_name" default="My Name"]

Display last name from the URL

[cartflows_url_fields field="last_name" default="My Surname"]

You can use this shortcode for any value passed in the URL.

Note

WooCommerce checkout fields usually include prefixes such as billing or shipping. When using personalization shortcodes in CartFlows, make sure to remove these prefixes.

For example

Use first_name instead of billing_first_name

Use last_name instead of shipping_last_name

Where You Can Use These Shortcodes

You can add personalization shortcodes on the following CartFlows steps.

  • Checkout step
  • Upsell step
  • Downsell step
  • Thank You step

These shortcodes work inside your page builder content elements and display values only when the related data is available.

Summary

Personalization shortcodes allow you to show checkout data and URL values dynamically on your CartFlows steps. This helps you create clearer, more relevant messages and improves the overall user experience.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page