Skip to content

Commit

Permalink
Update OrderValidation.php
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhj committed Nov 5, 2020
1 parent 0716b48 commit d4caa4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Controller/OrderValidation.php
Expand Up @@ -42,6 +42,9 @@ public function __invoke(Request $request): Response
$this->cart = IsotopeCart::findOneBy('klarna_order_id', $data->order_id);
Isotope::setCart($this->cart);

// Set the correct locale, see #7.
$GLOBALS['TL_LANGUAGE'] = $data->locale;

$isotopeOrder = IsotopeOrder::findOneBy('klarna_order_id', $data->order_id);
if (null !== $isotopeOrder) {
if (!$isotopeOrder->isLocked()) {
Expand Down

0 comments on commit d4caa4b

Please sign in to comment.