laravelshoppingcart icon indicating copy to clipboard operation
laravelshoppingcart copied to clipboard

Be able to update a value within attributes

Open joserick opened this issue 5 years ago • 1 comments

Be able to update a value within attributes without deleting others values. #163 #224

joserick avatar Oct 12 '20 02:10 joserick

Need to update the code as mentioned below to make it work. An array is not merged directly with a collection.

$collection = new ItemAttributeCollection ($value);
$item[$key] = $item[$key]->merge($collection);

websupplements avatar Sep 20 '21 16:09 websupplements