X-Cart:To apply a patch by issuing the command 'patch'
- Save the text of your patch to a file (e.g. patch.diff).
- Copy this file (patch.diff) to the directory where X-Cart is installed.
- Issue the command 'patch --dry-run -p1 < patch.diff' to check the patch applicability.
- If there are no errors during the check-up, apply the patch by issuing the command 'patch -p1 < patch.diff'.
You can read more about 'patch' command in the manual (man patch, info patch).
If the text of the patch contains header lines like "Index: include/func/func.category.php", use -p0 option in the commands, i.e. 'patch --dry-run -p0 < patch.diff' and 'patch -p0 < patch.diff'.
See also: How to apply patches manually.