Magento 2

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

Interactive Bash script for managing themes in Magento 2

Do you remember, how many times you did something that was time consuming and/or required certain amount of steps to achieve your goal? After some time you had to repeat the whole process… And again… And again… I am pretty sure you came to an idea, “Wouldn’t it be really useful if I can somehow simplify the process?” Yes, you are correct, the same question troubled me when trying to figure out how the make my life easier when creating a custom theme. Unlike Magento 1, Magento 2 has a different (and more complex) way of setting up themes, so I started developing a Bash script that will make my life easier. Hopefully, yours as well.

Read more

All I want for Christmas is a new Magento Solution Partner Program

Magento relies heavily on its network of Solution Partners. We are here to get our hands dirty and work with merchants on daily basis, helping them grow their businesses, share success stories and enable Magento to stay on top of the open source eCommerce game.

This is my take on the current Magento Solution Partner program, what works, what doesn’t and what are some of the main areas it should be improved on, based on our 5 years experience with the program.

Read more

Common Magento 2 SEO mistakes

Magento 2 has launched and on Magento’s official blog, they introduced some of the first Magento 2 featured online stores.

We took some time to analyse some common SEO mistakes in new Magento 2 stores and write them down for you in this article. Hopefuly this blog post will help you and serve as a sort of SEO checklist before you launch your own Magento 2 store – be it a new one or “upgrade” of the existing Magento 1.X store.

Read more

Inchoo is a Magento 2 Trained Solution Partner!

We’re all eagerly expecting Magento 2.

It’s a long awaited version of Magento, eCommerce platform, announced for the first time way back in 2010. And as the General Availability announcement is getting closer day by day, Magento is doing everything it can to make sure its Solution Partners are ready for the big date.

And we got our official confirmation of readiness – we are happy to announce that we are Magento 2 Trained Solution Partner!

Read more

Magento 2 Controllers

Controllers in Magento 2, like on other PHP MVC frameworks, are important part of Mvc flow. In Magento 2 there are lots of changes in controllers, for example; how they are structured and how they work compared with Magento 1. If you are familiar with Magento 1 controllers, then you know they can have multiple actions (class methods). In Magento 2 controllers have only one method (execute) that will be called by front controller. This article covers controller basics, matching flow, controller types (admin and frontend), changes on existing controllers, instructions to create custom controllers and an example how to create a few controllers.

Read more

Routing in Magento 2

We can say that routing in Magento is one of the most important parts. Complete application (Magento 2) flow depends on processing URL request and router classes which are responsible for matching and processing that requests. This article covers routers flow in Magento 2 and analyses some routers that come with default installation. Also it will be shown how to create one custom router. It will be mentioned how routers match action (Controller class), and more info about Controllers will be covered in a separated article.

Read more

Magento 2 Luma Theme Under The Scope

Magento 2 brings new default theme under the name “Luma”. Luma is a very clean, easy on the eyes and elegant theme that has adopted better usability practices than it’s predecessor, Magento 1 default “Madison Island” theme.

In this blog post I’ve prepared an overview of the main differences between these two themes and the crucial UX issues that were found in Beta version of Luma theme. As Magento 2 is still in the development phase, this article will be updated when some major changes occur.

Read more