How to Insert Retainful's 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 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:
Campaign & Automation These shortcodes are only applicable in the Campaign and Automation sections of Retainful. They can be used to personalize emails and messages for enhanced customer engagement.
Common short codes
These are common short codes that can be used in both campaigns and workflows.
Customer Details
{{first_name}}: Displays the customer's first name.
{{last_name}}: Displays the customer's last name.
{{customer_name}}: Displays the customer's full name.
{{email}}: Displays the customer's email address.
{{phone_number}}: Displays the customer's phone number.
{{unsubscribe_shop_customer_url}}: Displays a link that allows customers to unsubscribe from marketing emails or broadcasts.
Shop Information
The following short codes are related to the shop. These are common to both automation workflows and campaigns.
{{shop.name}}: Displays the shop name.
{{shop.email}}: Displays the shop email.
{{shop.currency}}: Displays the shop currency.
{{shop.domain}}: Displays the shop domain URL.
{{retainful_shop_url}}: Displays the Retainful store URL.
{{retainful_shop_url_with_coupon_code}}: Displays the Retainful store URL with a coupon code applied.
Campaign Short codes
In addition to the common short codes listed above, the following short codes can be used to include customer properties in your campaigns
1. Last Order Information
When sending a campaign, you can include the last order information.
{{last_order.order_number}}: Displays the order number.
{{last_order.order_date}}: Displays the date of the order.
{{last_order.order_status}}: Displays the current order status.
{{last_order.payment_method}}: Displays the payment method name.
{{last_order.total_price}}: Displays the total order price.
{{last_order.subtotal_price}}: Displays the subtotal amount.
{{last_order.total_tax}}: Displays the total tax.
{{last_order.total_discounts}}: Displays the total discount amount.
2. Last Cart Information
You can include the last abandoned cart information in the campaign using the following short codes. It will be useful when you target customers who abandoned the cart.
{{last_abandoned_cart.abandoned_checkout_url}}: Displays the recovery link for the abandoned checkout.
{{last_abandoned_cart.abandoned_checkout_url_with_coupon_code}}: Displays the recovery link with an applied coupon code.
{{last_abandoned_cart.total_price}} - Displays the total amount of the last abandoned cart / order
{{last_abandoned_cart.subtotal_price}}: Displays the subtotal price of the cart.
Automation Short codes
The following short codes can be used in the automation workflows. Please note that there are a few short codes that are specific to certain workflows.
Common Short codes for Automation Workflows
The following short codes can be used in almost all types of workflows except the "Welcome Email Series" type.
{{billing_address.name}}: Displays the full name for the billing address.
{{billing_address.address1}}: Displays the first line of the billing address.
{{billing_address.address2}}: Displays the second line of the billing address.
{{billing_address.city}}: Displays the billing city.
{{billing_address.province}}: Displays the state/province.
{{billing_address.zip}}: Displays the postal/ZIP code.
{{billing_address.country}}: Displays the billing country.
{{shipping_address.name}}: Displays the full name for the shipping address.
{{shipping_address.address1}}: Displays the first line of the shipping address.
{{shipping_address.address2}}: Displays the second line of the shipping address.
{{shipping_address.city}}: Displays the shipping city.
{{shipping_address.province}}: Displays the state/province.
{{shipping_address.zip}}: Displays the postal/ZIP code.
{{shipping_address.country}}: Displays the shipping country.
Abandoned Cart Workflow
The following short codes will work only for the abandoned cart automations
{{abandoned_checkout_url}}: Displays the abandoned cart recovery URL.
{{abandoned_checkout_url_with_coupon_code}}: Displays the recovery URL with a coupon code applied.
Post Purchase Workflows - Thank you, win back, order follow up & more
The following short codes will work in all the "after purchase" workflows such as thank you emails, win back emails.
Order Information
{{order_number}}: Displays the order number.
{{order_date}}: Displays the date of the order.
{{order_status}}: Displays the current order status.
{{payment_method}}: Displays the payment method name.
{{total_price}}: Displays the total order price.
{{subtotal_price}}: Displays the subtotal amount.
{{total_tax}}: Displays the total tax.
{{total_discounts}}: Displays the total discount amount.
Need More Help? We’re here to make things easier for you!
Email Us: Reach out anytime at support@retainful.com.
Schedule a Call: Still stuck or need a hands-on walkthrough? Book a quick session with our support team, and we’ll guide you step-by-step.
Need More Help in setting up Retainful?
We’re here to make things easier for you!
Email Us: Reach out anytime at support@retainful.com.
Schedule a Call: Still stuck or need a hands-on walkthrough?
Book a quick session with our support team, and we’ll guide you step-by-step.
Last updated