Fixed bug: 5910: When out of stock articles exists in basket and language is changed, shop for that session goes offline (cherry picked from commit 0eb0702)
Fixed bug #5902: Variants can't be deactivated

Checkbox logic should be done before checking if something was changed in variants.
(cherry picked from commit bbdffd5)
Fixed bug #5902: Variants can't be deactivated

Checkbox logic should be done before checking if something was changed in variants.
(cherry picked from commit 4577aad)