This commit is contained in:
prashant-webkul 2018-10-01 12:36:59 +05:30
parent aa7f380ec3
commit 45ed88c4e6
1 changed files with 0 additions and 5 deletions

View File

@ -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,