Skip to content

Commit 6609b90

Browse files
Fixed orderId casing
1 parent 6e5eea9 commit 6609b90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/Carts.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function createNewCarts(\craft\commerce\elements\db\OrderQuery $orders)
111111
foreach ($orders as $order) {
112112
// check for existing cart first
113113
// if none exist - create a new record
114-
$existingCart = CartRecord::find()->where(['orderID' => $order->id])->one();
114+
$existingCart = CartRecord::find()->where(['orderId' => $order->id])->one();
115115
if (!$existingCart) {
116116
$newCart = new CartRecord();
117117
$newCart->orderId = $order->id;

0 commit comments

Comments
 (0)