Skip to content

Commit 9c51a6c

Browse files
committed
commit
1 parent 508d55f commit 9c51a6c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/base/controllers/Frontend/Commerce/Checkout/Shipping.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,6 @@ protected function addShippingMethodsAccordion(FAPI\Form $form, array &$form_sta
236236
'container_attributes' => ['id' => 'shipping_methods-container'],
237237
]);
238238

239-
240-
241-
242239
$checkAddress = null;
243240

244241
if (!empty($form_state['input_values']['copy_address'])) {

app/base/models/Cart.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ public function requireShipping(): bool
504504
public function calculateShipping(): float
505505
{
506506
if (!$this->requireShipping()) {
507+
$this->setShippingAddressId(null);
507508
$this->setShippingMethod(null);
508509
$this->setShippingAmount(0.0);
509510
$this->setAdminShippingAmount(0.0);

0 commit comments

Comments
 (0)