What is Omnichannel & Using in Magento 2.x

“Omnichannel is the business strategy of using multiple marketing channels and integrating in a way, so that end-user a seamless front-end experience. Customers shop the Products through a wide variety of sales and marketing channels, by using Websites, Mobiles, Native Apps, Physical Retail Shop, Social Media, email, ERP, by Calling

“Omnichannel, Customers cannot dependent any specific marketing channel”

Magento 2 & Omnichannel

What is Composer.json Format in Magento 2.3 & After Upgrade in Magento 2.4 Community Edition

Once you upgrade Magento 2.3 Community Edition To Magento 2.4 Comminity Edition

Format Composer.json [ Magento 2.3 Community Edition ]

{
    "name": "magento/project-community-edition",
    "description": "eCommerce Platform for Growth (Community Edition)",
    "type": "project",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],
    "config": {
        "preferred-install": "dist",
        "sort-packages": true
    },
    "require": {
        "magento/product-community-edition": "2.3.3"
    },
    "require-dev": {
        "allure-framework/allure-phpunit": "~1.2.0",
        "friendsofphp/php-cs-fixer": "~2.14.0",
        "lusitanian/oauth": "~0.8.10",
        "magento/magento-coding-standard": "~3.0.0",
        "magento/magento2-functional-testing-framework": "2.4.5",
        "pdepend/pdepend": "2.5.2",
        "phpmd/phpmd": "@stable",
        "phpunit/phpunit": "~6.5.0",
        "sebastian/phpcpd": "~3.0.0",
        "squizlabs/php_codesniffer": "~3.4.0"
    },
    "conflict": {
        "gene/bluefoot": "*"
    },
    "autoload": {
        "psr-4": {
            "Magento\\Framework\\": "lib/internal/Magento/Framework/",
            "Magento\\Setup\\": "setup/src/Magento/Setup/",
            "Magento\\": "app/code/Magento/",
            "Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"
        },
        "psr-0": {
            "": [
                "app/code/",
                "generated/code/"
            ]
        },
        "files": [
            "app/etc/NonComposerComponentRegistration.php"
        ],
        "exclude-from-classmap": [
            "**/dev/**",
            "**/update/**",
            "**/Test/**"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
            "Magento\\Tools\\": "dev/tools/Magento/Tools/",
            "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
            "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
            "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
        }
    },
    "version": "2.3.3",
    "minimum-stability": "stable",
    "repositories": [
        {
            "type": "composer",
            "url": "https://repo.magento.com/"
        }
    ],
    "extra": {
        "magento-force": "override"
    }
}

Format Composer.json [ Magento 2.4 Community Edition ], Once Upgrade Magento 2.3 Community Edition To Magento 2.4 Comminity Edition

{
    "name": "magento/project-community-edition",
    "description": "eCommerce Platform for Growth (Community Edition)",
    "type": "project",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],
    "config": {
        "preferred-install": "dist",
        "sort-packages": true
    },
    "require": {
        "magento/composer-root-update-plugin": "~1.0",
        "magento/product-community-edition": "2.4.0"
    },
    "require-dev": {
        "allure-framework/allure-phpunit": "~1.2.0",
        "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0",
        "friendsofphp/php-cs-fixer": "~2.16.0",
        "lusitanian/oauth": "~0.8.10",
        "magento/magento-coding-standard": "*",
        "magento/magento2-functional-testing-framework": "^3.0",
        "pdepend/pdepend": "~2.7.1",
        "phpcompatibility/php-compatibility": "^9.3",
        "phpmd/phpmd": "^2.8.0",
        "phpstan/phpstan": ">=0.12.3 <=0.12.23",
        "phpunit/phpunit": "^9",
        "sebastian/phpcpd": "~5.0.0",
        "squizlabs/php_codesniffer": "~3.5.4"
    },
    "conflict": {
        "gene/bluefoot": "*"
    },
    "autoload": {
        "psr-4": {
            "Magento\\Framework\\": "lib/internal/Magento/Framework/",
            "Magento\\Setup\\": "setup/src/Magento/Setup/",
            "Magento\\": "app/code/Magento/",
            "Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"
        },
        "psr-0": {
            "": [
                "app/code/",
                "generated/code/"
            ]
        },
        "files": [
            "app/etc/NonComposerComponentRegistration.php"
        ],
        "exclude-from-classmap": [
            "**/dev/**",
            "**/update/**",
            "**/Test/**"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
            "Magento\\Tools\\": "dev/tools/Magento/Tools/",
            "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
            "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
            "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/",
            "Magento\\PhpStan\\": "dev/tests/static/framework/Magento/PhpStan/"
        }
    },
    "version": "2.4.0",
    "minimum-stability": "stable",
    "repositories": [
        {
            "type": "composer",
            "url": "https://repo.magento.com/"
        }
    ],
    "extra": {
        "magento-force": "override"
    }
}

Other important Magento 2.4.x issue as below

Magento 2.3 To Magento 2.4.5 Comptibility For PHP, MYSQL, Composer, Apache etc


Magento 2.4.3-p1 Installation Steps


Magento 2.4.3 Installation Steps


Magento 2.4.3 Features


Magento 2.4.3 – p1 Features


Magento 2.4 Two Factor Authentication


Magento 2.4.1 Features


Magento 2.4 Features


Magento 2.4 Installation


Magento 2.2, Magento 2.3, Magento2.4 Installation Issue on Windows 10, XAMPP


Magento 2 Installation at 51% Error: (Wrong file in Gd2.php:64) Module ‘Magento_Theme’

Which Magento 2 File Store Authentication Keys ( Public Key & Private Key) To Access repo.magento.com Repository In Magento 2.x

There are following below file stores Authentication Keys ( Public Key & Private Key) To Access repo.magento.com Repository In Magento 2

File Path as below-

Magento2-Root-Directory/auth.json

{
    "http-basic": {
        "repo.magento.com": {
            "username": "<public-key>",
            "password": "<private-key>"
        }
    }
}

Go To Magento 2 Root folder & rename auth.json.sample into auth

Once added Private & Public Keys, finally auth.json as below

{
"http-basic": {
"repo.magento.com": {
"username": "d42906009cbf0ea28f8278fa26e1eaa0",
"password": "f67302679e36b18610d1a1fe05350d9a"
}
}
}

Facebook Changed Its Name To Meta

Facebook on October 28th, 2021 announced that it has changed its company name to Meta & company rebrand as it moves to the Metaverse

“Metaverse” – an new online digital world where people can communicate, transmission message, playing game, work and in a virtual environment, often using VR(Virtual Reality) headsets.

Facebook and its other products as Instagram, Messenger and WhatsApp will be housed in a separate division from Facebook Reality Labs, which makes the company’s augmented and virtual reality products.

For more info visit https://about.facebook.com/meta

How To Disable Magento 2.4 Two-Factor Authentication

Magento 2.4 provides default Magento 2.4 Admin Login security [Two-Factor Authorization], once you installed Magento 2.4 & other below versions as Magento 2.4.x

Magento 2.4

Magento 2.4.1

Magento 2.4.1-P1

Magento 2.4.2-P1

Magento 2.4.2-P2

Magento 2.4.3

Magento 2.4.3-P1

and try to Admin Login, following below error occurs

Solution : below link redirects on solution page, where you can get info

How To Disable Module Magento_TwoFactorAuth (Two-Factor Authorization )

Other important Magento 2.4.x issue as below

Magento 2.3 To Magento 2.4.5 Comptibility For PHP, MYSQL, Composer, Apache etc


Magento 2.4.3-p1 Installation Steps


Magento 2.4.3 Installation Steps


Magento 2.4.3 Features


Magento 2.4.3 – p1 Features


Magento 2.4 Two Factor Authentication


Magento 2.4.1 Features


Magento 2.4 Features


Magento 2.4 Installation


Magento 2.2, Magento 2.3, Magento2.4 Installation Issue on Windows 10, XAMPP


Magento 2 Installation at 51% Error: (Wrong file in Gd2.php:64) Module ‘Magento_Theme’

You Need To Configure Two-Factor Authorization in Order To Proceed To Your Store’s Admin Area

Magento 2.4 Admin having following below Admin Login error

This same Magento 2.4 Admin Login issue having with following below Magento 2.4.x versions.

Magento 2.4

Magento 2.4.1

Magento 2.4.1-P1

Magento 2.4.2-P1

Magento 2.4.2-P2

Magento 2.4.3

Magento 2.4.3-P1

“You need to configure Two-Factor Authorization in order to proceed to your store’s admin area”

The following below two Solution

1- Solution : “Module Magento_TwoFactorAuth need to be disable”

Go to Magento2.4-Root-Directory/app/etc/config.php & converts

'Magento_TwoFactorAuth' => 1

Into

'Magento_TwoFactorAuth' => 0

and Run below command

php bin/magento cache:flush

2- Solution : Run following below CLI command

php bin/magento module:disable Magento_TwoFactorAuth

After run Flush Cache CLI Command

Finally Magento 2.4.x Admin Issue will be resolved & Login with your Magento 2.4.x Admin Login credentials

Other important Magento 2.4.x issue as below

Magento 2.3 To Magento 2.4.5 Comptibility For PHP, MYSQL, Composer, Apache etc


Magento 2.4.3-p1 Installation Steps


Magento 2.4.3 Installation Steps


Magento 2.4.3 Features


Magento 2.4.3 – p1 Features


Magento 2.4 Two Factor Authentication


Magento 2.4.1 Features


Magento 2.4 Features


Magento 2.4 Installation


Magento 2.2, Magento 2.3, Magento2.4 Installation Issue on Windows 10, XAMPP


Magento 2 Installation at 51% Error: (Wrong file in Gd2.php:64) Module ‘Magento_Theme’

SQLSTATE[HY000] [2002] No Connection Could Be Made Because The Target Machine Actively Refused it

While running Magento 2 Command & getting error as above or defined below

As trying to run below command or any other command

  • php bin/magento deploy:mode:set developer
  • php bin/magento setup:upgrade
  • php bin/magento setup:di:compile
  • php bin/magento setup:static-content:deploy -f
  • php bin/magento indexer:reindex
  • php bin/magento cache:clean
  • php bin/magento cache:flush

and geeting error

SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it

Solution:: Need to Start / Restart MYSQL Server.

Magento 2.3 To Magento 2.4.5 Compatibility For PHP, MYSQL, Composer, Apache etc

There are following below define , from Magento 2.3 To Magento 2.4.5 Comptibility For PHP, MYSQL, Composer, Apache, Nginx, Elasticsearch, Redis, Varnish etc.

Magento 2.X 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5
Composer 1.x 1.x 1.x 1.x 1.x 1.x 1.x 2.x 1.x 1.x 2.x 2.x 2.x 2.x
Elasticsearch 2.x, 5.x 5.x, 6.x 5.x, 6.x 5.x, 6.x 5.x, 6.x 7.6 7.7 7.9 7.6 7.7 7.9 7.9 7.10 7.10
MariaDB 10.1, 10.2 10.1, 10.2 10.1, 10.2 10.1, 10.2 10.1, 10.2 10.1, 10.2 10.2 10.3 10.2, 10.3, 10.4 10.4 10.4 10.4 10.4 10.4
MySQL 5.6, 5.7 5.6, 5.7 5.6, 5.7 5.6, 5.7 5.6, 5.7 5.6, 5.7 5.7 5.7 5.7, 8.0 8.0 8.0 8.0 8.0 8.0
PHP 7.1, 7.2 7.1, 7.2 7.1, 7.2 7.1, 7.2, 7.3 7.2, 7.3 7.2, 7.3 7.3 7.4 7.3, 7.4 7.4 7.4 7.4 8.1 8.1
RabbitMQ 2.x, 3.7 2.x, 3.7 2.x, 3.7 2.x, 3.7 3.7, 3.8 3.8 3.8 3.8 3.8 3.8 3.8 3.8 3.8 3.8
Redis 5.x 5.0 5.0 5.0 5.0 5.0 5.0 6.0 5.0 5.0 6.0 6.0 6.0 6.0
Varnish 4.x, 5.x 4.x, 5.x 4.x, 5.x 6.2 4.x, 5.x, 6.2 6.3 6.4 6.5 6.x 6.2 6.4 6.5 6.5 6.5
Apache 2.4 2.4 2.4 2.4 2.4 2.4 2.4 2.4 2.4 2.4 2.4 2.4 2.4 2.4
nginx 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8
AWS Aurora (MySQL)                       5.7    
AWS S3                     ✔️ ✔️    
AWS MQ                       3.8.11    
AWS ElastiCache                       Redis 6.x    
AWS ElasticSearch                       7.9    

Other important Magento 2.4.x issue as below

Magento 2.3 To Magento 2.4.5 Comptibility For PHP, MYSQL, Composer, Apache etc


Magento 2.4.3-p1 Installation Steps


Magento 2.4.3 Installation Steps


Magento 2.4.3 Features


Magento 2.4.3 – p1 Features


Magento 2.4 Two Factor Authentication


Magento 2.4.1 Features


Magento 2.4 Features


Magento 2.4 Installation


Magento 2.2, Magento 2.3, Magento2.4 Installation Issue on Windows 10, XAMPP


Magento 2 Installation at 51% Error: (Wrong file in Gd2.php:64) Module ‘Magento_Theme’

How To Upgrade Magento 2.3 To Magento 2.4 community-edition

There are following below steps need to follow to Upgrade Magento version 2.3 To Magento version 2.4

[1] – Take Project files & database backup

[2] – Install PHP 7.4, Mysql 5.7, Magento 2.4 also supports Mysql 8.0

[3] – Insall Elasticsearch 7.10

Check Elasticsearch working fine or not by command

curl -XGET 'http://localhost:9200'

[4] – Put site into maintenance mode by below command at Magento 2.3 root

php bin/magento maintenance:enable

[5] – Take a backup of the composer.json by below command at Magento 2.3 root path

cp composer.json composer.json.bak

[6] – Install the Composer update plugin by below command at Magento 2.3 root path

composer require magento/composer-root-update-plugin=~1.0 --no-update
composer update

[7] – Update composer.json file with latest version. In our case, it is Magento Version 2.4.0

by below command at Magento 2.3 root path

composer require magento/product-community-edition=2.4.0 --no-update

This command will take some time & actually download all the required
packages and upgrade your Magento version from 2.3.x to 2.4.0

composer update

[8] – Finally run below command at Magento 2.3 root path

php bin/magento cache:clean
rm -rf var/cache/*
rm -rf var/page_cache/*
rm -rf generated/code/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f

[9] – Disable maintenance mode run below command at Magento 2.3 root path

php bin/magento maintenance:disable

Remove update directory from your root folder as no need update
directory

[10] – Finally, Magento 2.3 has been successfully upgraded into Magento 2.4

Run upgraded Magento 2.4 Frontend as well as Backend

Other important Magento 2.4.x issue as below

Magento 2.3 To Magento 2.4.5 Comptibility For PHP, MYSQL, Composer, Apache etc


Magento 2.4.3-p1 Installation Steps


Magento 2.4.3 Installation Steps


Magento 2.4.3 Features


Magento 2.4.3 – p1 Features


Magento 2.4 Two Factor Authentication


Magento 2.4.1 Features


Magento 2.4 Features


Magento 2.4 Installation


Magento 2.2, Magento 2.3, Magento2.4 Installation Issue on Windows 10, XAMPP


Magento 2 Installation at 51% Error: (Wrong file in Gd2.php:64) Module ‘Magento_Theme’

Magento 2.x Public & Private Key

When try to install Magento 2 Install, by using composer for the first time, asking to enter a username and password, these are defined as below

“The repo.magento.com repository is where Magento 2 and third-party Composer packages are stored and requires authentication. Use your Magento Marketplace account to generate a pair of 32-character authentication keys ( Public Key & Private Key) to access the repository.”

Username = Public Key
Password = Private Key

There are following below steps need to follow

[1] – Create an account at below Magento Create Account Link

https://account.magento.com/customer/account/create/

[2] – Once you got email, Validate your e-mail address

[3] – Login at below Magento Login Link

https://account.magento.com/customer/account/login

[4] – Click your account name in the top-right corner of the page and select My Profile.

[5] – Click on the Access Keys Link in the Marketplace tab as below

[6] – Click Create a New Access Key button, Enter a specific name for the keys (as Engineer or Designer or Developer or Manager etc.) and click OK

[7] – Once Clicked a Create a New Access Key button , This generates Access Keys as Public and a Private key as below

[4.1] – Public key = Username

[4.2] – Private key = Password

“Length 32-character authentication keys