Skip to navigation Skip to main content

How to Pre-fill a WhatsApp Message With the Product Name, SKU and Price

mloun whatsapp prefilled message

“Hi” is the most expensive word in B2B messaging. A buyer sends it at 11pm, you reply “Hi, how can I help?” at 8am, and a day disappears before anyone says which product they wanted. Pre-filling the message removes that entire exchange.

This tutorial configures the WhatsApp button so it opens with the product name, SKU, price and page link already written in the buyer’s language of choice — no code, no third-party service.

What a good pre-filled message looks like

Before configuring anything, decide the shape. This is the one we use on export sites:

Hello, I'd like a quotation for {product_name} ({product_sku}).
Quantity: __ pcs. Destination port: __.
Page: {page_url}

Three properties make it work: it names the product, it leaves two blanks that are obviously the buyer’s job, and it ends with the page URL so you know which variant they were looking at.

The variables you can use

VariableOutputNeeds WooCommerce
{product_name}The product titleYes
{product_sku}SKU, empty when unsetYes
{product_price}Formatted priceYes
{page_title}Title of the current pageNo
{page_url}Full URLNo
{site_name}Site nameNo
{cf:field_name}Any custom field valueNo

On a page that is not a product — the homepage, a category, a blog post — the product variables simply render empty. Write the template so it still reads well when they do.

Step 1 — Choose the prefilled channels

Go to Side Contact → Behaviour → Inquiry messages and enable it. Three channels can carry a pre-filled body:

  • WhatsApp — via ?text=, the most reliable of the three
  • Email — subject and body
  • SMS — body only, keep it short

Every other channel (WeChat, Telegram, Viber, LINE, a plain phone number) cannot carry text through a URL. There the plugin falls back to copying the message to the clipboard and showing a short “paste it in the chat” hint — worth knowing before you wonder why Telegram looks different.

Step 2 — Write the template

Paste the template from the top of this article into the message field. Keep it under about 300 characters: WhatsApp turns longer texts into “Read more”, which defeats the purpose.

Two rules that avoid support tickets later:

  • Use straight quotes and no emoji. Emoji survive the encoding, but some Android keyboards break the URL when the text contains line breaks and emoji together.
  • Put the URL last. If a client truncates the message, at least the product context survives.

Step 3 — Check what a buyer actually gets

Open a product page on a phone and tap the WhatsApp button. The WhatsApp compose screen should open with the text already typed. If the message is empty:

  1. Confirm the channel’s number includes the country code, digits only.
  2. Confirm Inquiry messages is enabled and WhatsApp is ticked in its channel list.
  3. Purge the page cache — the prefill is added server-side, so a cached page keeps the old href.
  4. Check that another plugin is not rewriting wa.me links (some social-share plugins do).

Step 4 — Make the message survive translation

The template is user text, not a UI string, so it is not translated by the language pack — which is good: you control the wording per site. On a multilingual site, write one template per language in each language’s settings, or keep a single English template if your buyers are international anyway.

Why pre-filled messages change the quality of the lead

Compare two inboxes at 9am. The first has seven “Hi”. The second has three messages naming a model, a quantity and a port. The second inbox is answered in ten minutes per lead; the first takes two days of back-and-forth before anyone knows whether the enquiry is worth quoting.

That is the entire argument for pre-filling: it does not change how many people click, it changes what arrives when they do.

FAQ

Does this work without WooCommerce?

Yes — the page variables work anywhere. The product variables simply stay empty on non-WooCommerce sites, so write the template around {page_title} and {page_url} instead.

Can I use a different template per channel?

Yes. WhatsApp can be conversational while the email variant reads like a request for quotation, with a subject line.

Will it work with WhatsApp Business?

The wa.me link opens whichever WhatsApp app handles the number, including WhatsApp Business, as long as the number is registered there.

Where this fits

Pre-filled messages are a PRO feature and work on top of the free widget. See the full feature list, or start with the free plugin and add the licence when you are ready.

READY WHEN YOU ARE

Get Your Free Proposal in 24 Hours

Tell us your product and target market — in English, 普通话, or 粤语. Within 24 hours you'll get a concrete plan: scope, timeline, and a fixed price.

Free strategy call · Fixed quote · No obligation

Contact Form