The Pre-Filled message is a text that appears automatically in the WhatsApp chat Window when the page visitor clicks on the WhatsApp button/Image.
We can add multiple lines in the Pre-Filled Message along with the variables.
![](https://cdn.holithemes.com/plugins/click-to-chat/wp-content/uploads/2023/01/Pre-filled.webp)
![](https://cdn.holithemes.com/plugins/click-to-chat/wp-content/uploads/2021/06/Pre-filled-message-at-chat-window-2-1024x453.png)
Along with the text, we can add variables like {URL}, {site} {title}
- {site} – Name of the website [e.g. HoliThemes]
- {title} – The current page title [e.g. Ruby shades Necklace]
- {url} – The current page link [e.g. https://example.com/ruby-shades-necklace]
- [url] – url in square brackets – replaces with full URL including the query parameters
[e.g. https://example.com/ruby-shades-necklace/path?carat=24&diamond=true]
Example:
Hello {site}!
Name:
Like to know more information about - '{title}' - {url}
This Pre-Filled text will display in the WhatsApp chat window. Variables will be replaced based on the page where the user clicks on WhatsApp Icon/Button.
At the chat window, the variables are replaced with the below values.
Hello HoliThemes!
Name:
Like to know more information about - 'Ruby shades Necklace' - https://example.com/ruby-shades-necklace
WooCommerce variables
Click to Chat have some variables specific to WooCommerce pages like the Shop page, Single Product Pages, Cart page, Account page, and Checkout page.
- {product} – Name of the Product
- {price} – The discounted price of the Product
- {regular_price} – Price of the Product/ Undiscounted price of the Product
- {sku} – Stock left