1. Home
  2. Docs
  3. Notiqoo
  4. Related Guides
  5. Add custom parameters on WC Messaging template’s

Add custom parameters on WC Messaging template’s

Add Custom Parameters in Notiqoo WhatsApp Templates

Notiqoo seamlessly integrates the WhatsApp Cloud API with WooCommerce, enabling automated WhatsApp notifications and live customer chat experiences. One of Notiqoo’s most powerful features is the ability to send template messages with dynamic, customizable parameters.

This feature allows store owners and developers to inject real-time data—like order totals, booking details, or customer-specific info—into their WhatsApp templates. Let’s explore how you can add custom parameters to WhatsApp message templates using Notiqoo.

 How Custom Parameters Work

Notiqoo allows you to pass additional dynamic data into templates using a filter hook. This gives you flexibility to populate templates with real-time values such as:

  • Booking information

  • Order totals

  • Shipping addresses

  • Custom WooCommerce metadata

 Basic Example: Add Custom Fields to Templates

To add custom values to a WhatsApp template, use the notiqoo_additional_template_params filter.

php
add_filter('notiqoo_additional_template_params', 'add_custom_template_params', 10, 2);
function add_custom_template_params($parameters, $order)
{
$custom_params = array(
"param1" => '',
"param2" => ''
);
if ($order !== null) {
$custom_params = array(
“param1” => ‘value1’,
“param2” => ‘value2’
);
}return array_merge($parameters, $custom_params);
}

 What This Does:

  • Adds two new parameters (param1, param2) to your message templates.

  • These values can be mapped inside your Notiqoo template settings.

 Real-World Example: Add Booking Details

If your store uses WooCommerce Bookings, you can fetch and pass booking-specific data like booking ID, booking date, and address.

php
add_filter('notiqoo_additional_template_params', 'notiqoo_booking_params', 10, 2);
function notiqoo_booking_params($params, $order)
{
if ($order !== null && is_callable('WC_Booking_Data_Store::get_booking_ids_from_order_id')) {
$booking_ids = WC_Booking_Data_Store::get_booking_ids_from_order_id($order->get_id());
$booking = new WC_Booking($booking_ids[0]);
$custom_params = array(
“booking_id” => $booking_ids[0],
“booking_date” => gmdate(“d-M-Y”, $booking->get_start()),
“booking_address” => get_post_meta($booking->get_product_id(), ‘_address’, true),
“location” => “https://maps.google.com/?q=”
);
} else {
$custom_params = array(
“booking_id” => ,
“booking_date” => ,
“booking_address” => ,
“location” =>
);
}return array_merge($params, $custom_params);
}

 Example Use:

  • Insert {{booking_id}}, {{booking_date}}, etc. inside your Notiqoo template.

  • Parameters auto-populate when messages are triggered.

 Add Order Total to WhatsApp Template

You can also retrieve the WooCommerce order total and pass it to your template.

php
add_filter('notiqoo_additional_template_params', 'notiqoo_add_order_total_to_params', 10, 2);
function notiqoo_add_order_total_to_params($parameters, $order)
{
$custom_params = array(
"order_total" => ''
);
if ($order !== null) {
$custom_params = array(
“order_total” => $order->get_total()
);
}return array_merge($parameters, $custom_params);
}

 Usage:

  • Add {{order_total}} in your WhatsApp template.

  • Notiqoo will dynamically replace it with the actual total from the WooCommerce order.

 How to Use These Parameters in Notiqoo

  1. Go to Notiqoo → Template Settings

  2. Choose or create a template

  3. Add variables like {{order_total}}, {{booking_id}}, etc. to the message body

  4. These parameters will be replaced dynamically when sending the message

 Summary

With Notiqoo, you can build highly personalized, data-rich WhatsApp messages using WooCommerce order and booking data. By extending the notiqoo_additional_template_params hook, you can pass any custom value to your message templates—including totals, booking dates, customer notes, and more.

Take your WhatsApp CRM and automation to the next level by tailoring messages to individual customers—automatically.

How can we help?