Closed beuzathor closed 1 year ago
Chatgpt give me this solution 👍 $item = Cart::get($request->rowid); $options = $item->options->toArray(); $options['transport']['aller']['id'] = $transportaller->id; Cart::update($request->rowid, ['price' => $request->tarif_total, 'options' => $options, ]);
don't know if it is very efficient but this solution work....
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
Hi, I try to update one option but when i did it, all other option are deleted. I have many option like that
And when i try to update id do that 👍
But with that all the content in options is deleted and remplaced by new option. Is this normal behavior? Or is there another way to update some options without affecting others?