This blog posts contains vital information on Magento 2 debugging. Below, you will find Magento 2 tutorials related to Xdebug Magento 2 configuration, Magento 2 logging, enabling template path hints as well as a short list of free Magento 2 debugging tools. Continue Reading
Benchmarks show that Magento 2 is much faster than the 1.X version of the platform, but you can improve its performance with the aid of Varnish. Being an HTTP accelerator, it is often used with heavily consumed APIs and content-heavy dynamic websites. Unlike other similar solutions, Varnish is focused exclusively on HTTP. About 10% of the Top 10K websites rely on this accelerator. The most prominent Varnish users are The New York Times, Wikipedia, Vimeo, Facebook, and Twitter. Since the performance of these websites might be a great reason to use Varnishwith Magento 2, we’d like to shed light on its configuration within the platform, but let’s start with the nature of the accelerator. Continue Reading
Below, I shed light on such useful technology as RequireJS and compare it with the closest competitors. Since here on the Firebear blog we are passionate about Magento 2, I also explain how to configure and adjust RequireJS with the second version of the ecommerce platform. The article itself combines real world coding experience, notes from the official documentation, code snippets, and materials from reliable sources. You will find a complete resource list in the end of this blog post. Continue Reading
Being in business since 2006, Shopify has gathered more than 50 thousand retailers around the ecommerce platform. Despite Magento is a little bit younger, it is the leading ecommerce solution. It was first introduced in 2008, and in 2011 Ebay purchased the company. Unlike Shopify with its proprietary code, Magento is an open source ecommerce platform.
On Firebear, I’ve already compared Magento and Shopify. You can find that blog post here: Magento vs Shopify. Now, it is time to pay attention to differences between Magento 2 and Sopify. The following blog post discusses pros and cons related to both platforms. Let’s start with Shopify.
Since Magento 2 provides a very useful implementation of Symfony’s Console component, you can easily perform tons of important actions from a command line interface. It is possible to reindex, clean cache, generate code, create database backups, and run other commands with the help of this instrument. Moreover, you can easily enhance the existing solution with your own commands aimed at your Magento 2 extensions. Below, I explain how to use Magento 2 CLI tool and what commands to run. Continue Reading
This post describes how to update Magento 2 to the latest available version. Below, you will find all the necessary information related to the procedure, including some vital prerequisites. So, the version of your platform is a little bit outdated? Find out how to update it with the following Magento 2 tutorial.
In this Magento 2 tutorial, I explain how to uninstall Magento 2 modules. You have several uninstallation options, such as removing the modules’ code, database data, and database schema. I highly recommend you to create backups before doing any changes, because you will leave a chance to recover the data if something goes wrong.
Maintenance mode is a crucial part of every site launch; besides, there are tons of other situations when you can use it. Being an essential part of Magento 1.x development, maintenance mode is also available in Magento 2. Below, I will tell you how to enable it in a case of new platform.
The process is almost similar to Magento 1, but you only have to rename local.xml.sample to local.xml within your pub/errors directory. Continue Reading
Unfortunately, the process is not as easy as in Magento 1 ($crumbs = Mage::app()->getLayout->getBlock(‘breadcrumbs’);). In Magento 2, it depends on where you are going to instantiate it from. To create an instance from another block, use the following code:
Please note that in a case of the model you have to create _blockFactory (a protected member), and inject a \Magento\Framework\View\Element\BlockFactory instance in the constructor, assigning it to the member var. For instance: