How to apply a Magento composer patch

upload to base docroot of the store then run:

patch -p1 < %patch_name%.composer.patch

(If the above command does not work, try using -p2 instead of -p1 )

then refresh cache.