WPSlash

Adding Tracking Code Shortcode from WPSlash Voucher to WooSMS

Wednesday January 8, 2020

Here is a small snippet you can copy and paste to your child theme to add a shortcode <wpslash_voucher_courier_tracking> to WooSMS .

add_action('woosms_extends_variables', 'wpslash_add_tracking_variable_to_woosms', 10, 2);

function wpslash_add_tracking_variable_to_woosms($variables, $database)
{
  $variables->set('wpslash_voucher_courier_tracking', $row->wpslash_voucher_courier_tracking);

}

Note: If for any reason you cannot add it to yourself , feel free to open a ticket and we will take of adding this code to your child theme!

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Articles

Tutorials

How to Integrate a POS System with WooCommerce for Your Restaurant: Syncing In-Store and Online Orders with Square POS, Oliver POS, and Jovvie (Complete Setup Guide)

Why Your Restaurant Needs POS and WooCommerce Integration: The Problem of Running Separate Systems Picture a Friday night rush. Your dining room is packed, your phone is ringing with takeout orders, and your WooCommerce website just received twelve delivery requests in the last twenty minutes. Your host is scribbling tickets for the kitchen while someone […]
April 1, 2026
Tutorials

How to Build a Restaurant Loyalty and Rewards Program with WooCommerce: Points, Coupons, and Repeat Customer Strategies (Complete Setup Guide)

Why Loyalty Programs Matter for Restaurants (and How They Boost Repeat Orders) A customer places their first online order from your restaurant. The food arrives hot, the portions are generous, and they genuinely enjoy the meal. But three days later, they’re scrolling past a dozen other options and your restaurant fades into the background. Without […]
April 1, 2026
Tutorials

How to Set Up and Compare Payment Gateways for Your WooCommerce Restaurant Website: Stripe vs PayPal vs Square (Complete Guide to Faster Checkout, Lower Fees, and Higher Conversions)

Why Your Payment Gateway Choice Matters for Restaurant Ordering A hungry customer has just built their perfect order on your restaurant’s website — a large pepperoni pizza, garlic knots, and a tiramisu. They hit checkout, and then… the payment page takes five seconds to load. Or it redirects them to an unfamiliar screen. Or it […]
March 31, 2026