You can put a search box after the navigation block and use css to make display it in one line, since html/topmenu.phtml block doesn’t print its child’s
Because of Dependency Injection pattern Magento 2 have huge constructors for every class. World best PHP IDE PHP Storm can help you generate constructors and save lots of time in Magento 2 development.
With constructor generator you will be able to create constructors with arguments, with the value assigned to the field variables. Continue Reading
To get a URL from your Magento root directory, use getUrl. Since it inherits from the AbstractBlock class (Magento\Framework\View\Element\AbstractBlock), you are able to use it with any of your blocks. Check the below example:
The first parameter is the path you need, while the second one sets the _secure option if the user is browsing over https. You can add to the path by concatenating a specific filename onto the getUrl call or you could add it to the first parameter as well. Please note that the path is relative to the root directory of your Magento install.
Below, I shed light on a proper Redis configuration for Magento 2. If you are not familiar with the solution, it is an advanced key-value cache with top notch performance. In addition, Redis is often considered to be a data structure server, which provides the following opportunities:
value incrementation in a hash;
appending to a string;
pushing an element to a list;
set intersection, union and difference computing;
getting a sorted set of members with the highest ranking. Continue Reading
Below, I shed light on cache management in Magento 2. Since the second version of the platform differs from the current one, it is vitally important to understand all the nuances related to Magento 2 Cache Management. Let’s start with cache types available in Magento 2.
In this tutorial, we cover such important Magento 2 aspect as index management. The below post provides all necessary code, as well as descriptions and explanations related to Magento 2 Index Management.
is a reverse proxy server for different protocols, such as HTTPS, HTTP, POP3, SMTP, and IMAP, as well as an HTTP cache, a load balancer, and an origin web server. Being an open source project, Nginx has been started with a strong focus on high performance, high concurrency, and low usage of memory. Nginx runs on Mac OS X, Linux, BSD variants, Solaris, HP-UX, AIX, and other *nix flavors. In addition, you can find a proof of concept port for Windows. The project is licensed under the 2-clause BSD-like license, and below we will shade light on Magento 2 Nginx Configuration.
During the last 5 years, Magento became the leading online business solution. With 4+ million downloads, it is now a synonym to “e-commerce“. The new version is on the way, so you should be prepared for the new era of online trade. In this article, we gathered the most important video tutorials about Magento 2.0.