simplify if logic
archive cart
checkout update inventory
fixing
fix test