Fix is_on_sale for variations. Closes #3247.