Table of Contents

How to use pre-defined variables in Shopify?

Wati Shopify app users are offered the following predefined variables mentioned below and these variables can be used while creating template messages for Shopify automated messages

Variable Name

Description

1.

shop_name

Will display the name of the Shopify store

2.

abandoned_checkout_url

To be used in Shopify abandoned cart automated messages where the checkout URL will be displayed in the body text

3.

abandoned_checkout_url_partial_variable

To include the checkout URL in button of abandoned cart automated template message

4.

order_status_url

Will direct the user to the Shopify order status page

5.

order_number

To display the order number in template message

6.

discount_code

To display discount code in template message

7.

total_price

To display total price of order

8.

tracking_url

To display tracking url of order in template message

9.

tracking_company

To display the name of the shipment tracking company in template message

10.

tracking_number

To display order tracking number in template message

11.

cod_cancel_url

To include the Cash on delivery order cancellation link in body text of template message

12.

cod_confirm_url

To include the Cash on delivery confirmation link in body text of template message

13.

cod_cancel_url_partial_variable

To include the Cash on delivery order cancellation link in button for template message

14.

cod_confirm_url_partial_variable

To include the Cash on delivery order confirmtion link in button for template message

15.

first_name

To display first name of customer in body text of template message

16.

last_name

To display last name of customer in body text of template message

17.

product_image_url

To include image of the product in template message that has been abandoned in cart. The attribute can be used for creating Order confirmation and Cash On Delivery template messages for displaying product image

Most of the pre defined variables are designed to be used in the text body of template message for sending automated WhatsApp messages with Shopify

To use these variables, First the user needs to select the "Broadcast" tab in main menu and click the option "Template message"

Once done to include the variable in template message, click the tab "Add Variable" and select the variable you want to include from under the Shopify section

Points to Highlight

1. The Following variables mentioned below need to be used in the body text of template message and the URLs when displayed to end users will be in shortened format and will have a structure similar to this http://s.wati.io/12345

- abandoned_checkout_url (for taking customers to their specific abandoned cart page). This attribute is used when creating abandoned checkout template message.

- order_status_url (for taking customers to the order page to review their specific order). This attribute is mainly used for order confirmation automated message.

- cod_cancel_url (for taking customers to cancel their COD order). This attribute is used when creating Cash On Delivery automated message

- cod_confirm_url (for taking customers to confirm their COD order). This attribute is used creating Cash On Delivery automated message

2. If you are creating a template message for Abandoned cart automated message and want to include the checkout URL in the CTA button of the template message then need to use the following variable "abandoned_checkout_url_partial_variable"

As shown below while adding button to template, need to select the option "Dynamic" and then use the following URL "https://s.wati.io/{{abandoned_checkout_url_partial_variable}}"

Note: Always make sure to append https://s.wati.io before the variable when used in CTA button

Whenever the variable contains "partial_variable" then the variable is to be used in CTA button of template messages.

The types of partial variables offered for Wati Shopify app are

abandoned_checkout_url_partial_variable

To be used to include the checkout URL in CTA button for abandoned checkout automated message

order_status_url_partial_variable

To be used to include the order status URL in CTA button of order confirmation automated message

cod_confirm_url_partial_variable

To be used to include the Cash On Delivery order confirmation URL in Cash On Delivery automated message

cod_cancel_url_partial_variable

To be used to include the Cash On Delivery cancellation URL in Cash On Delivery automated message

tracking_url_partial_variable

To be used to include the tracking URL link in CTA button of Shipment tracking automated message

catalog_checkout_url_partial_variable

To be used to include the Catalog checkout url in CTA button for Catalog checkout template message

-

Screenshot on how to use the partial variable while creating template message has been shown below.

order_status_url_partial_variable

- cod_confirm_url_partial_variable

- cod_cancel_url_partial_variable

How did we do?

How to setup Cash On Delivery Automated message in Shopify app

Variables available for Wati Shopify app integration

Contact