Corrected the logic of Variants and Order Items