Skip to content

Commit 6b65968

Browse files
committed
[BUGFIX] use configured storagePid as OrderPid instead of current page-uid
1 parent f48e4ac commit 6b65968

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Classes/Controller/Cart/OrderController.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,9 @@ public function createAction(
141141

142142
$this->eventDispatcher->dispatch(new ProcessOrderCheckStockEvent($this->cart));
143143

144-
$orderItem->setCartPid(intval($GLOBALS['TSFE']->id));
145-
146-
// add billing and shipping address to order
147-
148144
$storagePid = $this->pluginSettings['settings']['order']['pid'];
145+
$orderItem->setCartPid($storagePid);
146+
// add billing and shipping address to order
149147
$billingAddress->setPid($storagePid);
150148
$orderItem->setBillingAddress($billingAddress);
151149

0 commit comments

Comments
 (0)