How to get access to working directories in Magento 2

To get access to working directories in Magento 2, you can declare the class in __constract: Continue Reading

To get access to working directories in Magento 2, you can declare the class in __constract: Continue Reading

Since Magento 2 relies on the concept of resources to interact with database, you can easily get the global resource and use it for playing with SQL queries or execute directly. Continue Reading

To execute the Magento 2 cron job, use the following code:
|
1 |
php <path to magento root>/bin/magento cron:run |
If you want to automate the process, add it to /etc/crontab. For instance:
|
1 |
*/30 * * * * www-data php /var/www/firebear.com/store/bin/magento cron:run |

Mage::Registry in Magento 2 is very similar to the registry of Magento 1. You can find it here: \Magento\Framework\Registry
Utilize dependency injection for adding it to the constructor. As a result, you will be able to use both $registry->register($key, $value) and $registry->registry($key) methods to store / access data.

In this Magento 2 vs Bigcommerce review we take a look at both platforms to show which of these ecommerce solutions is best suited for the needs of online retail. Please note that this blog post will be updated when we will get more information about Magento 2.

Magento and osCommerce are widely used by all possible merchants to run online retail. Both platforms come with numerous features allowing store owners maintain their ecommerce websites with minimum effort. But what about Magento 2? The new version of the platform offers much more features than its predecessor, so it should have more competitive advantages in comparison with osCommerce. Learn details in the following blog post.

SlideShare is the biggest source of worthy presentations. There, you can find tons of useful materials covering various topics, including Magento 2. The new version of the ecommerce platform is quickly rising in popularity, so there are enough presentations for creating this blog post. Continue Reading

Recently, we’ve compared Magento 2 with Shopify, and now it’s time to see how the platform differs from WooCommerce. Unlike Shopify, WooCommerce is an open source ecommerce solution, so it should have more common with Magento 2 features. When it comes to choosing a right online retail platform there are lots of nuances to think about, therefore we’ve tried to cover major differences between Magento 2 and WooCommerce.

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 Varnish with 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