Answer the question
In order to leave comments, you need to log in
How to detect changes for items in an order?
Internet shop. There is an order and goods in it. We click on editing and we can change the number of products, their sizes, add and remove. Data is saved at the click of a button. The data comes in the form of an array
$_POST
[
['id' => 2, 'count' => 4, 'size' => 'X'],
['id' => 2, 'count' => 3, 'size' => 'XL'],
['id' => 7, 'count' => 1, 'size' => 'X'],
['id' => 5, 'count' => 2, 'size' => 'S'],
['id' => 5, 'count' => 2, 'size' => 'S'],
['id' => 9, 'count' => 1, 'size' => 'M'],
]
Answer the question
In order to leave comments, you need to log in
How would you act in a similar situation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question