Summary
Wati makes it easy to personalize your WhatsApp messages using pre-defined variables from your WooCommerce store. These variables automatically pull customer and order details into your message templates, so you don't have to fill them in manually. This article explains what these variables are, how they work, and how you can use them effectively in your automated messages.
Instructions
What Are WooCommerce Variables in Wati?
WooCommerce variables in Wati are placeholders that automatically fetch customer and order information from your WooCommerce store. These variables are especially useful when creating personalized WhatsApp message templates for things like order confirmations or abandoned cart reminders.
For example, instead of manually typing a customer's order number, you can add the variable ##############{{order_number}}
List of Available WooCommerce Variables
Here are the variables you can use in your Wati message templates:
Variable | What It Shows |
| Your WooCommerce store name |
| Direct link for the customer to complete their abandoned checkout |
| Partial link for abandoned checkout (used with Wati's shortened URLs) |
| Direct link for the customer to check their order status |
| Partial link for order status (used with Wati's shortened URLs) |
| The customer's WooCommerce order number |
| Any discount code applied to the order |
| The total price of the customer's order |
| Your store's WhatsApp contact number |
| Direct link to open your store's WhatsApp chat |
| The customer's name |
How Are Shortened URLs Used?
Wati automatically shortens certain URLs from WooCommerce when generating customer links. This helps make the links cleaner and easier to share.
For example:
abandoned_checkout_url
will look like :http://s.wati.io/12345
order_status_url
will look like :http://s.wati.io/67890
These shortened links take customers directly to their specific pages on your WooCommerce store - such as their abandoned cart or order details.
What Are Partial Variables?
Partial variables are used when you want to create custom buttons (Call-To-Action or CTA buttons) in your message templates. To learn more about buttons in message templates, follow our guide here.
These partial variables must be used with this URL: https://s.wati.io/
because they are specific to the shortened URL generated by Wati.
Example Usage:
<a href="https://s.wati.io/#############{{abandoned_checkout_url_partial_variable}}" target="_blank" class="intercom-content-link">https://s.wati.io/##############{{abandoned_checkout_url_partial_variable}}</a> <a href="https://s.wati.io/#############{{order_status_url_partial_variable}}" target="_blank" class="intercom-content-link">https://s.wati.io/##############{{order_status_url_partial_variable}}</a>
Note: You cannot use your store's domain with these partial variables. For example, this will not work:https://yourstore.com/##############{{abandoned_checkout_url_partial_variable}}
What Happens When Customers Click These Links?
abandoned_checkout_url_partial_variable
Takes the customer directly to their abandoned cart page so they can complete their purchase.order_status_url_partial_variable
Takes the customer to their order details page where they can review their order status, address, or other information.
Frequently Asked Questions (FAQs)
General Questions
1. What are WooCommerce variables in Wati?
WooCommerce variables in Wati are placeholders that automatically insert customer and order details into your WhatsApp message templates. They help personalize messages like order updates or cart reminders without manual input.
2. Where can I use these variables?
You can use these variables in the text body of your Wati message templates for sending automated WhatsApp messages linked to WooCommerce actions like abandoned carts or order confirmations.
Available Variables
3. What variables are available in Wati for WooCommerce?
Wati provides several variables you can use, including:
shop_name
: Your store nameorder_number
: Customer's order numbertotal_price
: Total order pricediscount_code
: Discount appliedname
: Customer's nameabandoned_checkout_url
: Link to abandoned cartorder_status_url
: Link to order statusshop_whatsapp
: Store's WhatsApp numbershop_whatsapp_url
: Direct link to your WhatsApp chat
4. What is the difference between a full URL variable and a partial URL variable?
Full URL variables like abandoned_checkout_url
generate the complete link for customers.Partial variables like abandoned_checkout_url_partial_variable
only generate part of the link and must be combined with Wati's shortened URL domain: https://s.wati.io/
.
Shortened URLs and Partial Variables
5. Why does Wati shorten URLs?
Wati shortens URLs to make customer links cleaner and easier to share. For example, abandoned_checkout_url
might look like http://s.wati.io/12345
.
6. Can I use my own store domain with partial variables?
No, partial variables only work with Wati's shortened URL domain: https://s.wati.io/
. Using your store domain with these variables will not work.
7. How do I use partial variables correctly?
To use partial variables, add them after Wati's shortened URL like this:https://s.wati.io/##############{{abandoned_checkout_url_partial_variable}}https://s.wati.io/##############{{order_status_url_partial_variable}}
Customer Actions
8. What happens when a customer clicks the abandoned checkout link?
The customer will be taken directly to their abandoned cart page in your WooCommerce store, allowing them to complete their purchase.
9. What happens when a customer clicks the order status link?
The customer will be directed to their order details page where they can review their order status, shipping address, and other relevant information.