pixie-media/patching
最新稳定版本:1.0.5
Composer 安装命令:
composer require pixie-media/patching
包简介
Provides critical fixes for Magento 2
README 文档
README
To install
composer require pixie-media/patching
To apply
./vendor/pixie-media/patching/bin/ece-patches apply
Universal patches
In this repo
./patches
What adding patch to this repo update patches.json
Version relates to version found in composer.lock
Format
Correct format: <TICKET_NUMBER>__<TITLE>__<PACKAGE_VERSION>.patch
Example: MAGECLOUD-2899__fix_redis_slave_configuration__2.3.0.patch
Example
PIXIE001__exception__2.4.5.patch
Local patches
In project repo
./m2-hotfixes
Example patch
./m2-hotfixes/ga-patch.patch
diff --git a/vendor/magento/module-google-gtag/Block/Ga.php b/vendor/magento/module-google-gtag/Block/Ga.php
index ab5824a27..1597db4f8 100644
--- a/vendor/magento/module-google-gtag/Block/Ga.php
+++ b/vendor/magento/module-google-gtag/Block/Ga.php
@@ -159,6 +159,7 @@ class Ga extends Template
'value' => number_format((float) $order->getGrandTotal(), 2),
'tax' => number_format((float) $order->getTaxAmount(), 2),
'shipping' => number_format((float) $order->getShippingAmount(), 2),
+ 'currency' => $order->getOrderCurrencyCode(),
];
$result['currency'] = $order->getOrderCurrencyCode();
}
How to create a local patch
You want to patch ./vendor/magento/module-catalog/Model/ResourceModel/Product.php
Note: project must be a git repo
-
download
/vendor/magento/module-catalog/Model/ResourceModel/Product.php -
git add -f ./vendor/magento/module-catalog/Model/ResourceModel/Product.php -
Edit file
-
git diff ./vendor/magento/module-catalog/Model/ResourceModel/Product.php > ./m2-hotfixes/test.patch -
commit
./m2-hotfixes/test.patchto repo
Note: You will need to revert changes to test patch applies correctly
Global patch log
| Code | Description | File name |
|---|---|---|
| PIXIE001 | 2.4.5 No exception log fix | PIXIE001__exception__2.4.5.patch |
| PIXIE002 | 3DS lookup error 2.4.5p1-p5 | PIXIE002__braintree-3ds-lookup-error-fix__2.4.5-p1_p2_p3_p4_p5.patch |
| PIXIE003 | Order status error | PIXIE003__status__2.4.7-p1.patch |
统计信息
- 总下载量: 346
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2024-01-19