Skip to content

Instantly share code, notes, and snippets.

@hgati
hgati / magerun
Last active March 28, 2024 03:04
n98-magerun.phar Alias
#!/bin/bash
/usr/local/bin/n98-magerun2.phar --root-dir=/var/www/magento --skip-root-check "$@"
@hgati
hgati / 0002-magenizr-magento2-envbar-Fix-system-config-form-field-UI-broken.patch
Created October 26, 2023 10:57
magenizr/magento2-envbar: Fix system config form field UI broken #2
From 1900d0eaf3fdee1966c2a654080e382eba407c76 Mon Sep 17 00:00:00 2001
From: Dennis <cobays@gmail.com>
Date: Thu, 26 Oct 2023 19:52:52 +0900
Subject: [PATCH] Fix system config form field UI broken.
---
view/adminhtml/web/css/source/_module.less | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/view/adminhtml/web/css/source/_module.less b/view/adminhtml/web/css/source/_module.less
From 80066770da67f5710c02ea8f65533a69b0a55917 Mon Sep 17 00:00:00 2001
From: Dennis <cobays@gmail.com>
Date: Wed, 25 Oct 2023 15:24:59 +0900
Subject: [PATCH] Fixed an error in system.log: Areacode is already set
---
Console/Command/DeleteOrdersCommand.php | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/Console/Command/DeleteOrdersCommand.php b/Console/Command/DeleteOrdersCommand.php
From 2333e0fd5cc0a7f1d30cd2edcf73acd90bba8a63 Mon Sep 17 00:00:00 2001
From: Dennis <cobays@gmail.com>
Date: Wed, 25 Oct 2023 14:41:23 +0900
Subject: [PATCH] Declare class property to fix issue in PHP 8.2
---
Helper/Data.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Helper/Data.php b/Helper/Data.php
From 28b02fb73a5159b1145033cf87927ab5a065917f Mon Sep 17 00:00:00 2001
From: Dennis <cobays@gmail.com>
Date: Wed, 25 Oct 2023 13:53:54 +0900
Subject: [PATCH 3/3] Fixed an error : delete operation is forbidden
---
Console/Command/DeleteOrdersCommand.php | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Console/Command/DeleteOrdersCommand.php b/Console/Command/DeleteOrdersCommand.php
From 8946f7f59aee74300477b2e7bb5b58cd39b225bb Mon Sep 17 00:00:00 2001
From: Dennis <cobays@gmail.com>
Date: Wed, 25 Oct 2023 13:29:29 +0900
Subject: [PATCH 2/2] Fixed an error must be of the type int, "null" returned.
---
Console/Command/DeleteOrdersCommand.php | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Console/Command/DeleteOrdersCommand.php b/Console/Command/DeleteOrdersCommand.php
From 2c8ddf3534dc7b73b86bcf99117282723acf8a1d Mon Sep 17 00:00:00 2001
From: Dennis <cobays@gmail.com>
Date: Wed, 25 Oct 2023 13:27:11 +0900
Subject: [PATCH 1/2] Declare class property to fix issue in PHP 8.2
---
Console/Command/DeleteOrdersCommand.php | 15 +++++++++++++++
Controller/Adminhtml/Deleteorders/MassDelete.php | 15 +++++++++++++++
2 files changed, 30 insertions(+)
From fad911581bc224c64db7ce1f95bd8eb1acf7aa13 Mon Sep 17 00:00:00 2001
From: Dennis <cobays@gmail.com>
Date: Wed, 25 Oct 2023 11:44:23 +0900
Subject: [PATCH] Declare class property to fix issue in PHP 8.2
---
Helper/Data.php | 15 +++++++++++++++
Observer/Adminhtml/AddCss.php | 10 ++++++++++
2 files changed, 25 insertions(+)
From de0865396b6989dc2f8d0af68f26d8735cbacd8c Mon Sep 17 00:00:00 2001
From: Dennis <cobays@gmail.com>
Date: Wed, 27 Sep 2023 14:41:08 +0900
Subject: [PATCH] Fixing the issue where an error occurs when clicking the
"Preview Feed" button. (Mirasvit Devs fails to comprehend the issues outside
their own PC environment.)
---
src/Feed/Controller/Adminhtml/Feed/Save.php | 1 +
1 file changed, 1 insertion(+)
@hgati
hgati / magecc.csv
Last active June 13, 2023 05:01
Magento2 Country Codes (iso 3166-1 alpha-2)
AF Afghanistan
AX Aland Island (Finland);Åland Islands
AL Albania
DZ Algeria
AS American Samoa
AD Andorra
AO Angola
AI Anguilla
AQ Antarctica
AG Antigua and Barbuda;Antigua & Barbuda;Antigua;Barbuda