Skip to content

Commit 0520d6e

Browse files
fix: refresh carrier prices on gift wrapping toggle
1 parent 18cd18b commit 0520d6e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Checkout/Ajax/Carrier/TempAddressStorage.php renamed to src/Checkout/Ajax/TempAddressStorage.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function get(): array
2222
return [];
2323
}
2424

25-
$raw = (string) ($this->context->cookie->__get(self::COOKIE_KEY) ?: '');
25+
$raw = (string) ($this->context->cookie->{self::COOKIE_KEY} ?: '');
2626
if ($raw === '') {
2727
return [];
2828
}
@@ -55,7 +55,7 @@ public function saveFromRequest(array $requestParameters): void
5555
return;
5656
}
5757

58-
$this->context->cookie->__set(self::COOKIE_KEY, json_encode($params));
58+
$this->context->cookie->{self::COOKIE_KEY} = json_encode($params);
5959
$this->context->cookie->write();
6060
}
6161

@@ -65,7 +65,7 @@ public function clear(): void
6565
return;
6666
}
6767

68-
$this->context->cookie->__unset(self::COOKIE_KEY);
68+
unset($this->context->cookie->{self::COOKIE_KEY});
6969
$this->context->cookie->write();
7070
}
7171
}

0 commit comments

Comments
 (0)