Posts by Domagoj Potkoc

Solr and Magento – search by department

There are eCommerce stores which sell a wide variety of products like food, personal care, electronics, and so on. On those stores, visitors want to be able to search by a specific category. This can be achieved by adding a new feature: search by department or category. In this quick tutorial I will explain the base concept of how to do it using Solr search engine as an example.

Read more

How to add custom javascript in Magento 2 with requireJS

Magento 2 brings some new features in javascript. One of them is “requireJS” (javascript file loader) and second is “jQuery“, a very popular js library. One of the biggest benefits is using requireJS which means that Magento 2 is ready for the upcoming HTTP2 protocol. In the next few steps we will explain how to create valid javascript code for use in requireJS. Let’s start with an example.

Read more

Magento 2 logging

In every development process you sometimes need to log variables or custom messages. Now, we will explain how to create a custom log. Magento 2 comes with built-in log facility which is based on Monolog library. You can find this package in the following location: “MAGENTO2_ROOT/vendor/monolog“.

Read more

How to disable Magento event

There are some cases where you will wish to disable Magento event. For example, in one our projects we decided to disable all “Mage_Log” events in order to decrease number of sql queries to the database. We will describe the process of doing it in this post, but I’m sure similar approach can be used in many other scenarios.

Read more

Magento and Google Adwords conversion tracking

If you use Google Adwords advertising for your Magento web store, you will probably need this module. This module will be very useful, because Magento doesn’t have functionality for tracking Adowrds conversion. Feel free to download module and use it on personal responsibility. I’m using this module on web store without any problems.

Read more