From 4868180c1400e42fd4d387438165b127f62d7dce Mon Sep 17 00:00:00 2001
From: Reinhold Kainhofer <reinhold@kainhofer.com>
Date: Tue, 21 Apr 2015 19:43:49 +0200
Subject: [PATCH] Remove debug output

---
 ordernumber.php | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/ordernumber.php b/ordernumber.php
index 9b6facd..261aa67 100644
--- a/ordernumber.php
+++ b/ordernumber.php
@@ -194,7 +194,6 @@ class plgVmShopperOrdernumber extends vmShopperPlugin {
         
         $this->setupAddressReplacements($reps, "", $details, $nrtype);
     
-// print("<pre>details for $nrtype: ".print_r($details,1)."</pre>");
 		if (isset($details->order_total))		$reps['[ordertotal]'] = $details->order_total;
 		if (isset($details->order_total))		$reps['[amount]'] = $details->order_total;
 		if (isset($details->order_subtotal))	$reps['[ordersubtotal]'] = $details->order_total;
@@ -217,13 +216,11 @@ class plgVmShopperOrdernumber extends vmShopperPlugin {
 			$orderModel = VmModel::getModel('orders');
 			$productModel = VmModel::getModel('product');
 			$order = (object)$orderModel->getOrder($details->virtuemart_order_id);
-// print("<pre>Order is: ".print_r($order,1)."</pre>");
 			foreach ($order->items as $i) {
 				$articles += $i->product_quantity;
 				$products += 1;
 
 				$p = $productModel->getProduct($i->virtuemart_product_id);
-// print("<pre>Order product is: ".print_r($p,1)."</pre>");
 				$skus[$p->product_sku] = 1;
 				foreach ($p->categories as $c) {
 					$categories[$c] = 1;
@@ -235,7 +232,6 @@ class plgVmShopperOrdernumber extends vmShopperPlugin {
 			}
 		} else {
 			$cart = VirtueMartCart::getCart();
-// print("<pre>Cart is: ".print_r($cart,1)."</pre>");
 			foreach ($cart->products as $p) {
 				$articles += $p->quantity;
 				$products += 1;
@@ -271,7 +267,6 @@ class plgVmShopperOrdernumber extends vmShopperPlugin {
     protected function setupShippingReplacements(&$reps, $order, $nrtype) {
 		if (isset($details->virtuemart_paymentmethod_id))		$reps['[paymentmethod]'] = $details->virtuemart_paymentmethod_id;
 		if (isset($details->virtuemart_shipmentmethod_id))		$reps['[shipmentmethod]'] = $details->virtuemart_shipmentmethod_id;
-//         $reps["[shippingmethod]"] = $order->getShippingMethod();
     }
     
     protected function setupThirdPartyReplacements (&$reps, $details, $nrtype) {
@@ -287,12 +282,10 @@ class plgVmShopperOrdernumber extends vmShopperPlugin {
         $this->setupUserReplacements($reps, $details, $nrtype);
         $this->setupShippingReplacements($reps, $details, $nrtype);
         $this->setupThirdPartyReplacements($reps, $details, $nrtype);
-// print("<pre>All replacements: ".print_r($reps,1)."</pre>");
         return $reps;
     }
 
     protected function setupCustomVariables ($nrtype, $order, $reps, $customvars) {
-print("<pre>Custom Variables: ".print_r($customvars,1)."</pre>");
         foreach ($customvars as $c) {
             $conditionvar = strtolower($c['conditionvar']);
             $op = $c['conditionop'];
-- 
GitLab