Fixes code snipped in preferences.md

It was not closing the block properly.

fixes #5542
HTTP Patch makes direct update_attributes call on Spree::Order

fixes #5544
fixes #5543