从Magento信息库获取修复程序到我的项目 [英] Get Fix from Magento repository to my project
问题描述
我有一个问题.如何下载此修补程序中的更改:
https://github.com/magento/magento2/commit/1e78fe2e37af0012b7f60b29c658221b8ab8> >
我项目中的 Magento版本是 2.1.2 ,我对此异常有疑问: 可配置产品"44583"没有子产品 那么,如何才能仅将此修补程序下载到我的存储库中? 您可以使用 composer-patch 应用Magento修复程序.要使用它,您可以执行以下步骤: 安装作曲家补丁: composer需要cweagans/composer-patches 此处下载补丁程序并编辑并拆分该补丁程序像这样:
打开 your_magento_install_dir/composer.json 并编辑额外"节点以应用补丁,如下所示: } 我希望这能解决您的问题 谢谢 I have a question. How can I download the changes in this hotfix:
https://github.com/magento/magento2/commit/1e78fe2e37af0012b7f60b29c658221b8ab8467b Version Magento in my project is 2.1.2 and I have a problem with this exception: Configurable product "44583" does not have sub-products So, How can I download only this fix to my repository? You can use composer-patch to apply Magento fix. To use it, you can do the following steps: Install composer patch: composer require cweagans/composer-patches Download your patch here and edit and split that patch to something like this:
Open your_magento_install_dir/composer.json and edit "extra" node to apply your patch like this: } I hope this will solve your problem Thanks 这篇关于从Magento信息库获取修复程序到我的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
"extra": {
"magento-force": "override",
"patches": {
"magento/module-catalog": {
"Fix: https://github.com/magento/magento2/issues/5762": "patches/your_patch.patch"
},
"magento/module-configurable-product": {
"Fix: https://github.com/magento/magento2/issues/5762": "patches/your_patch.patch"
},
}
"extra": {
"magento-force": "override",
"patches": {
"magento/module-catalog": {
"Fix: https://github.com/magento/magento2/issues/5762": "patches/your_patch.patch"
},
"magento/module-configurable-product": {
"Fix: https://github.com/magento/magento2/issues/5762": "patches/your_patch.patch"
},
}