Skip to content
Snippets Groups Projects
Commit ba81eb05 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Fix plugin template

parent 4450ae0c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment