change condition when cart is duplicated