How to Insert the Retainful Shortcodes

Insert Retainful shortcodes directly into your pages or posts to display cart recovery, referral, or discount content seamlessly.

Retainful enables you to personalize your emails effectively using shortcodes. For instance, you can dynamically include the customer’s name in the subject line or the body of the email by leveraging the appropriate shortcode. This enhances the relevance and engagement of your email communication.

When an email is sent to the customer, the shortcode is automatically replaced with their name, ensuring a personalized and engaging email experience.

IMPORTANT

Shortcodes must always be enclosed with two opening curly braces and two closing curly braces. Example: {{example_shortcode}}

List of Shortcodes

Here is a list of popular shortcodes that you can use in both the Subject Lines and Email Body:

Customer

  • {{customer_name}} – Name of the customer (only if the customer provided one)

  • {{customer.email}} – The email address used by the customer at checkout

  • {{customer.phone}} – The phone number entered by the customer at checkout

Cart / Order

  • {{abandoned_checkout_url}} – Includes a unique recovery link for the cart in the abandoned cart emails, allowing the customer to recover their cart and complete the order.

  • {{abandoned_checkout_url_with_coupon_code}} – Same as {{abandoned_checkout_url}}, but if a coupon code is offered, it is automatically applied to the cart or checkout.

  • {{retainful_coupon}} – Displays the coupon code generated by the coupon block in the email editor.

  • {{order_number}} – The order number (only for WooCommerce platform)

  • {{order_status}} – The order status (only for post-purchase emails; may not always be available for abandoned carts)

  • {{woocommerce_totals.total_price}} – Grand total (only for WooCommerce platform)

  • {{subtotal_price}} – Order subtotal (only for WooCommerce platform)

  • {{woocommerce_totals.total_tax}} – Total tax amount (only for WooCommerce platform)

  • {{woocommerce_totals.total_discounts}} – Total discount applied (only for WooCommerce platform)

  • {{woocommerce_totals.total_shipping}} – Total shipping amount (only for WooCommerce platform)

  • {{completed_at | date: "%Y-%m-%d"}} – Order date (only for WooCommerce platform; captures the paid date)

  • {{payment_method.name}} – Payment method (only for WooCommerce platform)

Billing Address

  • {{billing_address.first_name}} – First Name of the customer

  • {{billing_address.last_name}} – Last Name of the customer

  • {{billing_address.city}} – The city chosen by the customer at the billing address

  • {{billing_address.country}} – Country selected in the billing address

  • {{billing_address.zip}} – Zip code mentioned at the billing address

  • {{billing_address.address1}} – The street address mentioned at the billing address (referred to as address1)

  • {{billing_address.address2}} – The additional street address information entered (referred to as address2)

  • {{billing_address.province}} – The state/province chosen at the billing address

  • {{billing_address.province_code}} – The two-letter code of the selected province

  • {{billing_address.country_code}} – The two-letter code of the selected country

Shipping address

  • {{shipping_address.lastname}} – Last name of the customer in the shipping address

  • {{shipping_address.name}} – Customer's full name (both first and last name)

  • {{shipping_address.city}} – The city chosen by the customer at the shipping address

  • {{shipping_address.country}} – Country selected in the shipping address

  • {{shipping_address.zip}} – Zip code mentioned at the shipping address

  • {{shipping_address.address1}} – The street address mentioned at the shipping address (referred to as address1)

  • {{shipping_address.address2}} – The additional information entered in the street address part (referred to as address2)

  • {{shipping_address.province}} – The state/province chosen at the shipping address

  • {{shipping_address.province_code}} – The two-letter code of the selected province

  • {{shipping_address.country_code}} – The two-letter code of the selected country

Shop / Store

  • {{shipping_address.lastname}} – Last name of the customer in the shipping address

  • {{shipping_address.name}} – Customer's full name (both first and last name)

  • {{shipping_address.city}} – The city chosen by the customer at the shipping address

  • {{shipping_address.country}} – Country selected in the shipping address

  • {{shipping_address.zip}} – Zip code mentioned at the shipping address

  • {{shipping_address.address1}} – The street address mentioned at the shipping address (referred to as address1)

  • {{shipping_address.address2}} – The additional information entered in the street address part (referred to as address2)

  • {{shipping_address.province}} – The state/province chosen at the shipping address

  • {{shipping_address.province_code}} – The two-letter code of the selected province

  • {{shipping_address.country_code}} – The two-letter code of the selected country

Last updated