diff --git a/packages/Webkul/Checkout/src/Cart.php b/packages/Webkul/Checkout/src/Cart.php index ff0914f58..bf7306a77 100644 --- a/packages/Webkul/Checkout/src/Cart.php +++ b/packages/Webkul/Checkout/src/Cart.php @@ -371,8 +371,6 @@ class Cart { if($data['is_configurable'] == "true") { $parent = $cart->items()->create($itemData['parent']); - $this->canAddOrUpdate($parent->child->id, $parent->quantity); - $itemData['child']['parent_id'] = $parent->id; // $this->canAddOrUpdate($parent->child->id, $parent->quantity); @@ -506,10 +504,7 @@ class Cart { $data = []; foreach($item->product->super_attributes as $attribute) { - dd($item->child); - dd($attribute->options); $option = $attribute->options()->where('id', $item->child->{$attribute->code})->first(); - $data['attributes'][$attribute->code] = [ 'attribute_name' => $attribute->name, 'option_label' => $option->label,