We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e5eea9 commit 6609b90Copy full SHA for 6609b90
src/services/Carts.php
@@ -111,7 +111,7 @@ public function createNewCarts(\craft\commerce\elements\db\OrderQuery $orders)
111
foreach ($orders as $order) {
112
// check for existing cart first
113
// if none exist - create a new record
114
- $existingCart = CartRecord::find()->where(['orderID' => $order->id])->one();
+ $existingCart = CartRecord::find()->where(['orderId' => $order->id])->one();
115
if (!$existingCart) {
116
$newCart = new CartRecord();
117
$newCart->orderId = $order->id;
0 commit comments