When add_to_cart is called, ensure the correct product_id is set for variations. Closes #4650