re-merge
This commit is contained in:
parent
aa7f380ec3
commit
45ed88c4e6
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue