From b6dad234e74a9ccccaff87cc4e977cac16b5e356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Knap?= Date: Fri, 2 Mar 2018 23:42:15 +0100 Subject: [PATCH] - fixed addPaymentDataToRequest method, adding data to request instead of quote --- app/code/community/Meanbee/Shippingrules/Model/Carrier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/community/Meanbee/Shippingrules/Model/Carrier.php b/app/code/community/Meanbee/Shippingrules/Model/Carrier.php index 85f085b..bbd657e 100644 --- a/app/code/community/Meanbee/Shippingrules/Model/Carrier.php +++ b/app/code/community/Meanbee/Shippingrules/Model/Carrier.php @@ -327,7 +327,7 @@ public function addPaymentDataToRequest(Mage_Shipping_Model_Rate_Request $reques $requestItems = $request->getAllItems(); if (count($requestItems) > 0) { $quote = $requestItems[0]->getQuote(); - $quote->setData('payment_method', $quote->getPayment()->getMethod()); + $request->setData('payment_method', $quote->getPayment()->getMethod()); } return $request; }