Ihor Vansach
- 8 min read
As you create your store, there are multiple stages to go through: starting with and gradually moving to live. Each stage has corresponding tasks to keep your website running.
Magento 2 handles this through the deploy mode functionality. There are three Magento modes: default, development, and production. Each facilitates different store operations.
However, to use Magento 2 modes effectively, you need to know what each is useful for. This is exactly what you will find out today: what Magento modes are, how they differ, and how to switch between them without downtime.
Key takeaways
Magento 2 offers three deploy modes — default, developer, and production.
Each deploy mode controls how your store behaves in different environments. This affects performance, error visibility, and all changes and updates.
Default mode is a transitional mode used right after installation. In this mode, Magento automatically generates static files for a convenient setup. But it's inefficient long-term, so youihor
- 9 min read
When working with Magento, you've probably come across terms like Magento modules, extensions or plugins in Magento quite often. Each plays a unique role in your Mageno store performance, compatibility and scalability.
While they might seem interchangeable — they are not. And knowing the difference helps you make more strategic decisions about your store customisations.
So, whether you're a store owner looking for a new feature or a developer working on some customisation, you're in the right place.
In this guide, you'll learn all about the differences between Magento modules, extensnions and plugins in Magento. We'll explain what each one really means and how to use them to cover the specific needs of your business.
Magento Basics: What Are Extensions, Modules, and Plugins?
One thing that makes Magento stand out among other eCommerce platforms is its flexibility and the way it handles customisations. But before you start tweaking the code to add new features, you need to understandihor
- 4 min read
It's been 10 years since the first release of the Magefan Blog — the first blog extension on the Magento market. We're proud to be the first ones to offer Magento users a free marketing tool to drive more traffic, promote their products and improve SEO.
Throughout those years, the free Magefan Blog has been delivering a variety of 80+ features that help people get noticed in search results. And it worked. Fast forward to the present moment to see Magefan Blog being the №1 free blogging tool for Magento stores with:
1,800,000+ downloads
10,000+ stores using it
Integration with 10+ most popular Magento themes
320+ reviews on magefan.com website only
119 released versions
All those years, the Magefan Blog has been offering more features in a free version than some of the paid solutions provided in their most basic plan.
However, time flies, and it becomes harder for us to continue adding on to the massive functionality of the free Magefan Blog. It's a free version, so some of the featuresihor
- 6 min read
Securing an online store is a crucial task for every successful e-commerce business. That’s why Magento experts continually develop , to keep their store and customer data safe and protected.
However, don't hesitate to take extra security steps to strengthen your protection against threats. A common way is learning about the Magento Security Scan Tool — a powerful, free tool designed to help your store remain a safe place.
Today, you'll learn its key features, benefits, and why it's essential to use it to maintain the security of your store.
What is Magento 2 Security Scan?
Magento Security Scan is a powerful service provided by Adobe whose task is to help store owners protect their businesses from various security risks, such as missing patches, malware, and unauthorised access.
No matter whether you are a user, this free tool helps identify security vulnerabilities and offers effective recommendations to protect your store.
How the Magento 2 Security Scan Tool Works?
Since Magentoihor
- 4 min read
As always, Magento 2.4.8 releases include a lot of fixes, features and improvements aimed at one thing — making Magento a better platform for your online business. And the are really worth your attention.
Read about the latest changes before you and upgrade it to the latest version.
Magento 2.4.8 Release Notes
Let's skim through all the improvements and fixes in this release to find out how they could impact your store performance.
Security
There are two main security improvements in this release:
New CLI command for changing the encryption keys to improve usability and eliminate previous bugs.
Improve one-time password settings.
The Duo Security 2FA in Adobe Commerce now uses the latest SDK (Web SDK v4).
Platform
To ensure the platform meets the modern demand, it should be compatible with all modern technologies.
Added compatibility with the long-term support (LTS) versions of MariaDB 11.4 LTS and MySQL 8.4 LTS
Removed compatibility with PHP 8.1 for Adobe Commerce in this releaseihor
- 4 min read
Three years ago, on February 24th, 2022, at 3:40 (Kyiv time) all of our lives were divided into BEFORE and AFTER, when russian tanks started the full-scale invasion of Ukraine blatantly violating all international laws, rights, and agreements.
Starting from that time, there was not a single day without explosions. Our families, our work and our hope in the Ukrainian Armed Forces were the only things that kept our morale state "in place", considering the constant flow of terrible news and russian PSYOP (psychological operations).
In many countries, there is no more news feature on the Ukrainian battlefields. Or about the daily destruction that the russians inflict on civilian infrastructure. It leads a lot of people to believe that the russian war in Ukraine is "slowing down".
But that's not like it at all. It's even more horrific than in spring 2022.
It's not just russian guided bomb units that are used against us any more. It's hundreds of Iranian suicide drones and North Koreanihor
- 4 min read
You don't have to imagine how frustrating 503 maintenance pages and other error messages are. Everyone hates them — merchants lose potential customers while the latter get interrupted when shopping. It's a lose-lose situation.
Every developer knows that errors on the page are a part of the Magento deployment, including the process. But very few actually know how to avoid it with the zero downtime deployment.
So today we'll break down every detail of how the zero downtime deployment works and why you need it. You'll also learn whether can you actually achieve zero downtime without buying Magento Commerce.
But let's start with the basics first.
How Does Magento Deployment Work?
Deployment is a method of building modules, patches and other code and delivering it to end users through different environments. In other words, it's pushing new code from one environment to the other.
These environment usually include:
Local — where developers build the code.
Testing — where developersihor
- 5 min read
Same as other Magento releases Magento 2.4.7 contains multiple bug fixes, platform enhancements and new features, of course. In particular, Magento provides over 200 quality fixes and improvements, better GraphQL performance, and 13 security fixes and improvements in this release.
Now let's have a better look at the Magento 2.4.7 release notes to see what this version has to offer before you and upgrade.
Magento 2.4.7 Release Notes
There have been plenty of features added in this release, however, we'd like to highlight only the most important , usability and performance updates, worth your attention.
Platform
The main platform improvements include the compatibility of the platform with the key technologies.
PHP 8.3 compatibility: Magento Open Source now supports both PHP 8.3 and 8.2.
Varnish Cache 7.4: compatibility with the Varnish Cache 6.0.x and 7.2.x versions remains.
Composer 2.7.x: compatibility with the Composer 2.2.x remains.
RabiitMQ 3.11: compatibility with the RabbitMQihor
- 6 min read
February 24, 2022 marks 2 years or 731 days of full-scale russian invasion of Ukraine…
However, the russian hybrid war began 10 years ago on February 20, 2014. It all started with the Crimea occupation by russia in 2014. Then the russian army invaded other parts of Ukraine - Donetsk and Luhansk regions.
Today, we’d like to remind ourselves and the world: why our lives have split into “before” and “after” since February 24, 2022.
We understand that the world news has slightly switched from the russian full-scale war in Ukraine to other important topics. However, the war in Ukraine is still not over...
Our day doesn't begin with a cup of coffee or tea. Every day begins with reading news of the latest missile attacks and how many people died (these attacks have been ongoing from day one of this war).
Every day at 9 a.m. we have a moment of silence to commemorate those who have been killed in the russian war against Ukraine.
In this article, we recalled the biggest, heartbreaking eventsihor
- 10 min read
Over the years, proved to be a trustworthy eCommerce platform for successful store development. Thousands of people decided to give it a shot and now continue to grow and scale their businesses.
The area of has also been expanding. No wonder so many developers work with different Magento branches trying to find their place in this extensive architecture and create a career.
Becoming a certified Magento 2 developer opens more opportunities for you as a professional. The question is, where do you start?
We've prepared all the answers here. You'll learn what Magento certifications are available for you, and what they require and cover. Besides, we'll share some useful tips to help you pass the certification successfully.
Ready to start?
What is Magento 2 Certification?
Magento certification, or Adobe certification, is the verification and validation of your professional knowledge of Magento 2 development and/or management. Once passed, you receive a badge confirming your Magento developerihor
- 8 min read
If you're planning to upgrade your Magento store or start a new one, the first step is downloading the right version of the platform. However, Adobe hasn't made things easy for the average user. You can no longer download Magento archives from their website.
That's why we've developed an easier way for you to — a direct link to Magento ZIP archives.
Additionally, we'll walk you through everything you need to know about Magento downloads. From accessing the files to downloading Magento with or without sample data, and overcoming the obstacles — we've got you covered.
Note: all our are already compatible with the latest Magento versions.
Why Keep Magento Updated?
You can download Magento latest version for new features. But each release is more than just a list of new options. Every version and patch addresses critical often exploited by attackers.
This makes Magento updates essential for maintaining a secure store and protecting customer data and transactions.
Besides, each updateihor
- 6 min read
The effectiveness of having an active blog has been proven numerous times. Your if you want to drive organic traffic, establish a brand voice, and grow a lively community. To say nothing of the countless marketing and SEO opportunities.
Sadly, Magento 2 doesn't offer a blog out of the box. This is why there are plenty of blog extensions on the market with the most advanced functionality. It makes it quite difficult to choose the best option, though.
This is why we collected the best for blog management and explored their key features. Hopefully, this list will help you make the right choice and create an engaging blog.
Ready to get started?
Best Blog Extensions for Magento
Vendor
Extension Name
Price
Guarantees
Rating
by Magefan
$149
100% Open Code
30 Days Money Back Policy
365 Days Free Support
365 Days Free Updates
5.0 ⭐⭐⭐⭐⭐
336 reviews
Magento 2 Blog Extension by Mageplaza
Free
100% Open Code
60 Days Refund Policy
365 Days Free Updates
365 Days Free Support
5.0 ⭐⭐⭐⭐⭐
131 reviews
Blogihor
- 2 min read
is a great long-awaited feature that was implemented in Magento 2.3.0. It helps merchants to operate multiple , keep proper track of the items in each stock, assign products to sources etc.
Yet, Magento 2 multi-source inventory has its own flaws. For instance, it may cause some inconsistencies with the . Besides, if you run a small business and have only one inventory source, MSI may confuse you.
Thus, you might need to know how to disable MSI in Magento 2. And this is exactly what you'll learn today.
So, to disable multi-source inventory in Magento 2:
1. Create your Magento 2 database dump.
2. Install Magefan MSI Disabler. This module has some useful CLI commands and PHP class rewrites to prevent errors when MSI is disabled. For that run the following commands:
composer require magefan/module-msi-disabler
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
3. Once the extension is installed, run the command to disable MSI:
bin/magentoihor
- 5 min read
Magento 2.4.6 has been launched on March 2023. It features scalability and performance enhancements, over 300 quality fixes and updated core composer dependencies and third-party libraries.
In this guide, you'll learn about the Magento 2.4.6 release notes and the patch versions before you .
Magento 2.4.6 Release Notes
Magento gets better with each version. So 2.4.6. definitely has a lot to offer. Let's dive into the most important , performance, and usability updates.
Platform
For high performance Magento 2.4.6 introduces support for PHP 8.2 (PHP 8.1 will continue to be supported).
Composer 2.2.x support
OpenSearch 2.x support
Redis 7.0.x support
Compatibility with ElasticSearch 8.x and MariaDB 10.6
Updated outdated JS libraries and removed outdated dependencies
Security improvements
This release contains 8 security fixes, even though there are no confirmed attacks to date. Most of them are related to the admin panel since it's the first thing the attacker would target. So the followingihor
- 1 min read
If you want to tailor your customer's experience to their needs you have to gather as much information about them as possible. Displaying unique pricing details or offering different shipping services based on customer groups required you to get current customer data in Magento.
Besides, customer age, gender and location are valuable marketing insights you can use to tweak your strategy.
Since you already know how to and to customize them, in this guide you'll learn everything about getting logged in customers details.
Get Current Customer in Magento 2
You can get current customer in Magento via \Magento\Customer\Model\Session model using two methods.
Using Construct
<?phpnamespace VendorName\ModuleName\Folder;class Example{ private $customerSession; public function __construct( \Magento\Customer\Model\Session $customerSession ) { $this->customerSession = $customerSession; } public function getCurrentCustomer() { return $this->customerSession->getCustomer(); }}?>
Using Object Managerihor
- 2 min read
The first thing you face once managing a store, is translating all of your content and landing pages. However, the content you create and publish on the frontend is not the only content you need to translate.
That's why you have to generate a translation dictionary to form a list of texts to translate in email templates, third-party extensions, JS files, and so on. That's when you could face the Magento "Missed phrase" error.
Note: if you're using the and use the Search and Translate panel to find text to translate, you might still encounter this issue.
Reasons for Magento "missing phrase"
Magento "missing phrase" error mainly appears when you try to generate a translation dictionary when running the following command:
bin/magento i18n:collect-phrases --magento
Most often, the "Missed phrase" error comes from the third-party extensions. It's caused an empty string, like __('') the system tries to translate. In other words, it appears when the text wrapped in the is missing.
How to Fixihor
- 6 min read
Magento 2.4.5. has been launched in August 2022 with over 290 quality enhancements and fixes. It features improvements in GraphQL, performance, quality and many other features. Since then there has been 14 patches released to improve , stability and performance.
So, today we'll focus on the Magento 2.4.5 release notes to guide you through all these versions. You'll discover all important features in this version before you and update it to the latest version.
Magento 2.4.5 Release Notes
There have been plenty of features added in this release. However, we'd like to highlight only the most important features worth your attention.
Platform
A lot of focus is on platform improvements in this release.
Composer 2.2. support
TincMCE 5.10.2 support
Query 1.13.1 support
DHL integration schema updated to v6.2
Updated outdated JS libraries
Removed outdated dependencies
Security
Magento 2.4.5 includes 20 security fixes and platform security improvements.
Google reCAPTCHA for Wish List Sharing, Giftihor
- 2 min read
Message from the Magefan CEO, Ihor Vansach:
Today we celebrate the 31st Anniversary of Ukrainian Renewed Independence. For the last 400 years Ukrainians were fighting for their independence, and this fight, unfortunately, continues.
When we celebrated the 30th Anniversary of Ukrainian Renewed Independence last year we couldn’t even imagine what terrible things will happen to our beautiful country in 6 months. Since russia started its war and brought tragedy to our land on February 24, 2022, our working processes have stopped only for a few days. Each of us has found inner strength and could put ourselves together (although it was dramatically hard emotionally) to keep working.
The war that russia began against our country changed our mindsets and life values. We value our loved ones more than ever before, we value our neighbourhoods, more than ever before, we value the opportunity to work in our undamaged office more than ever before, and we most important love Ukraine more than ever beforeihor
- 1 min read
If you need to get current URL in Magento 2 PHTML file the easiest way to do this is to use the following code:
$currentUrl = $block->getUrl('*/*/*', ['_current' => true, '_use_rewrite' => true]);
This is the best method since you don't even need to use the Object Manager.
The same code works for block PHP classes as well. But you need to replace $block with $this.
Example:
$currentUrl = $this->getUrl('*/*/*', ['_current' => true, '_use_rewrite' => true]);
But...
The Best Way to Get Current URL in Magento 2
The best way is to use UrlInterface.
Example:
$urlInterface = \Magento\Framework\App\ObjectManager::getInstance() ->get(\Magento\Framework\UrlInterface::class);$currentUrl = $urlInterface->getCurrentUrl();
Using the object manager directly is not recommended, so you need to include UrlInterface dependence in your class constructor to be able to use it.
Example:
private $urlInterface;public function __construct(...\Magento\Framework\UrlInterface $urlInterface...) {$this->urlInterfaceihor
- 3 min read
Though most of the development tasks are done via developer , a store should run in production mode to ensure a secure and fast environment.
In this guide, you'll learn how to set Magento 2 production mode correctly and explain how to do it without downtime.
How to Set Production Mode in Magento?
Switching Magento to production mode requires running one simple CLI command:
php bin/magento deploy:mode:set production
However, there are some steps before and after that you should know about.
Step 1: Check the current mode
To see what Magento mode a store is in, run the following command:
php bin/magento deploy:mode:show
After running this command, you'll receive one of these two messages:
Current application mode: productionCurrent application mode: developer
Step 2: Set production mode in Magento
If a store is in developer mode, the following CLI command helps Magento set production mode:
php bin/magento deploy:mode:set production
To switch back to developer or default mode, run the sameihor
- 2 min read
There are different ways to install Magento 2 Extension:
1. Install Magento 2 Extension via the Composer
This installation method is the most preferred, but not all Magento 2 extension vendors provide a possibility to install their modules via the Composer.
Composer is the package manager for the PHP, it allows you to manage dependencies of Magento 2 extensions and PHP libraries. It also facilitates the upgrade process of Magento2 & Magento2 Extensions.
2. Install Magento 2 Extension from Archive
This is the most common method since Magento 1.x times.

