Price versus quantity with hysteretic regime shifts