Skip to content

Instantly share code, notes, and snippets.

@XigenDominic
XigenDominic / magento-2-custom-patch
Created April 28, 2021 19:58
Create magento 2 custom patch
# Patcher
composer require cweagans/composer-patches
git add -f ./vendor/magento/module-catalog/Model/ResourceModel/Product.php
# Edit file in vendor e.g. ./vendor/magento/module-catalog/Model/ResourceModel/Product.php
mkdir ./patches
mkdir ./patches/composer