From edd4574213f271290e2dce2797a43525bfa278c1 Mon Sep 17 00:00:00 2001 From: iesus Date: Fri, 15 Dec 2017 14:10:04 +0000 Subject: [PATCH] get customer reference from customer not root-data --- .../community/Svea/Checkout/Model/Payment/CreateOrder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/community/Svea/Checkout/Model/Payment/CreateOrder.php b/app/code/community/Svea/Checkout/Model/Payment/CreateOrder.php index 3916975..3f81fd3 100755 --- a/app/code/community/Svea/Checkout/Model/Payment/CreateOrder.php +++ b/app/code/community/Svea/Checkout/Model/Payment/CreateOrder.php @@ -115,8 +115,8 @@ protected function _addAddressToQuote($quote, $data) $billingAddress = new Varien_Object($data->getData('BillingAddress')); $shippingAddress = new Varien_Object($data->getData('ShippingAddress')); $customer = new Varien_Object($data->getData('Customer')); - $reference = ($data->getData('CustomerReference')) - ? ($data->getData('CustomerReference')) + $reference = ($customer->getData('CustomerReference')) + ? ($customer->getData('CustomerReference')) : false; $billingFirstname = ($billingAddress->getData('FirstName')) ? $billingAddress->getData('FirstName')