Skip to content

Instantly share code, notes, and snippets.

@hgati
hgati / magento-2.4.6-php-ext
Created March 23, 2023 09:01
Magento v2.4.6 필수 php 익스텐션
[ Magento v2.4.6 PHP extension Requirement ]
ext-bcmath
ext-ctype
ext-curl
ext-dom
ext-fileinfo
ext-filter
ext-gd
ext-hash
ext-iconv
@hgati
hgati / NWDthemes-Revolution-Slider-6.5.3.3-Patch.sh
Last active April 18, 2023 13:36
Revolution Slider v6.5.3.3 Extension of NWD Themes - How to add PHP 8.2 compatibility.
#!/usr/bin/env bash
# Issue: Revolution Slider (v6.5.3.3) is not supported PHP 8.2
# When you click NWDTHEMES > Slider Overview on magento admin menu, it occurs an errors such as below.
# (See error report file such as /var/www/magento/var/report/8c30fd7a6382eca771957a80770a644ca9b54c478cf7049770bd7efde978bd5b)
# /var/www/magento is your Magento Base Directory. In my case /var/www/magento
# $_registerHelper is deprecated in /var/www/magento/app/code/Nwdthemes/Revslider/Helper/Plugin.php on line 50
# $_appState in deprecated in /var/www/magento/app/code/Nwdthemes/Revslider/Helper/Framework.php on line 142
# $_pageFactory in deprecated in /var/www/magento/app/code/Nwdthemes/Revslider/Helper/Framework.php on line 148
@hgati
hgati / idols.txt
Last active April 26, 2023 08:31
Kpop Idol Names from "idol" attribute_code
#GUN
(G)I-DLE
015B
100%
10cm
10X10
14U
1PUNCH
1Set
1TEAM
@hgati
hgati / iso.csv
Created June 11, 2023 22:50
ISO 코드
GH 가나 GHANA
GA 가봉 GABON
GY 가이아나 GUYANA
GM 감비아 GAMBIA
GG 건지 섬 GUERNSEY
GP 과들루프 GUADELOUPE
GT 과테말라 GUATEMALA
GU GUAM
GD 그레나다 GRENADA
GR 그리스 GREECE
@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
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(+)
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 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 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 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