SG
if ($found){
Session::push('products-cart', $cart_array);
}
else{
Session::push('products-cart', $newProduct);
}
Если есть товар то его обновить если нету добавить, так?
В начале получил данные из сессии, в конце записал данные в сессию
Size: a a a
SG
if ($found){
Session::push('products-cart', $cart_array);
}
else{
Session::push('products-cart', $newProduct);
}
Y
Y
SG
Y
Y
G
SS
SG
Y
ВШ
Y
Y
Y
ВШ
ВШ
SG
С
ВШ