Skip to content

Commit e983cd2

Browse files
authored
Merge pull request #8 from ordergroove/evasilchenko-patch-6
Fix flat rate shipping support
2 parents 5ea1b9e + 06e9376 commit e983cd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Model/RecurringOrder/CreateRecurringOrder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ public function placeRecurringOrder(array $data)
362362
$shippingAddress->setCollectShippingRates(true)
363363
->collectShippingRates()
364364
->setShippingMethod('flatrate_flatrate');
365+
365366
$quote->setPaymentMethod($validateTokenData['method']);
366367
$quote->setInventoryProcessed(false);
367368
$quote->setIsMultiShipping(0);
@@ -387,6 +388,7 @@ public function placeRecurringOrder(array $data)
387388

388389
$extraPaymentData = $this->createRecurringOrderHelper->createPaymentMethodNonce($validateTokenData, $customerInfo['customerId']);
389390
$quote->getPayment()->importData($extraPaymentData);
391+
$quote->setTotalsCollectedFlag(false);
390392
$quote->collectTotals();
391393
$this->quoteRepository->save($quote);
392394
// Create Order From Quote

0 commit comments

Comments
 (0)