diff --git a/plugins/template/YOUR_PLUGIN_NAME.php b/plugins/template/YOUR_PLUGIN_NAME.php
index 0ef26babf4f61062224290aa0ef272cd344f4ab8..1d8cd631fb914f168c8ce59101ef39a56226c40f 100644
--- a/plugins/template/YOUR_PLUGIN_NAME.php
+++ b/plugins/template/YOUR_PLUGIN_NAME.php
@@ -35,10 +35,10 @@ class plgVmShopperYOUR_PLUGIN_NAME extends VmShopperPlugin {
 	function onVmOrdernumberGetVariables(&$reps, $fmt, $nrtype, $details) {
         // As an example add a variable [type] that contains the number type:
         switch ($nrtype) {
-            case 0: $reps['type'] = "Order"; break;
-            case 1: $reps['type'] = "Invoice"; break;
-            case 2: $reps['type'] = "Customer"; break;
-            case 3: $reps['type'] = "OrderPassword"; break;
+            case 0: $reps['[type]'] = "Order"; break;
+            case 1: $reps['[type]'] = "Invoice"; break;
+            case 2: $reps['[type]'] = "Customer"; break;
+            case 3: $reps['[type]'] = "OrderPassword"; break;
         }
         // Another example: set the ip address:
         if (isset($details->ip_address)) $reps["[ipaddress]"] = $details->ip_address;