Magento 2

How to programmatically create customers in Magento 2.3.x

There are several ways to create customers in Magento 2. A customer can create an account on their own using the sign-up form, a customer can be created through the admin interface, and there is even a built-in Magento 2 import feature that can mass import a huge number of customers from a CSV file, provided that the customer data in the CSV is import-ready.

But what if we have thousands of customers whose data still needs to be processed before they can be created? The best way to do this would be to create the customers programmatically.

In this article, we are going to cover the topic of creating customers programmatically, and to this purpose, we are going to create a simple Magento 2 module which is going to have a custom console command and a couple of models that are going to be used to read, process and create customers.

Read more

Lazy load your images and iframes

Lazy loading is an effective way to improve your frontend performance. And that’s especially important on eCommerce websites. In this article, you will read (and learn) how to reduce page load time by loading your

  1. images on scroll and
  2. iframes on demand.

Let’s get started with lazy load!

Read more

Best practices for Magento homepage design

Did you know that customers are more likely to land on a category or a product page of your Magento store than on the homepage? Nevertheless, the homepage remains an essential part of an eCommerce store for many customers who start their shopping process. It also acts as an anchor to refer back to throughout the shopping experience.

The homepage introduces the website, explains what it sells, and sets some expectations. It should convey brand values, inspire customers to explore, display product ranges – and accomplish that without visual clutter.

It acts as a shop window to an online store, so cramming things inside might result in a lower perceived value. You wouldn’t clutter your shop window, would you?

Read more

How to set up taxes in Magento 2

We are happy to share with you the ultimate guide on how to set up and manage taxes in Magento 2. Everything you need as a merchant, consultant or developer, you’ll find right here.

This guide is based on Magento 2.3.X, however, there were no significant changes in previous versions of Magento 2 when it comes to sales tax setup, so it should be backward compatible as well.

The setup presented in this guide works the same way in Magento 2 Commerce (Enterprise), Magento 2 Open Source (Community), and Magento Commerce Cloud.

Read more

Best practices for Magento theme design

This article is the first from a series of articles that will address the concepts and best practices for creating Magento theme design. In this one, we’re talking about prerequisites for designing a custom Magento theme, the difference between custom and off-the-shelf themes and the decoupled approach for Magento theme design and development.

Read more

Declarative Schema feature in Magento 2

First of all, what is declarative schema in Magento 2? It is a new way of working with database without developers having to write various scripts for each new module version. It was introduced in 2018 with Magento 2.3 and it’s one of the major changes. In this article you will learn how to use declarative schema and apply data patches.

Read more

Magento 2 logging

Logging is an important part of every development process. Logs provide insight into system processes of Magento 2 and are a great tool for tracking errors, significant events, exceptions and many more. In order for the logging library to be properly implemented with Magento 2, it must comply with PSR-3 standard.

Magento 2 comes with built-in logging solution based on Monolog Library which will be analyzed further in this article.

Read more

How did we standardize Magento 2 frontend development?

Many Frontend developers in the Magento community felt a certain level of pain when they started working on their first Magento 2 project. So did we! “This is just a start. I will be faster on the next one“, was a common statement. However, new projects arrived and frontend development was still not as fast as it was with Magento 1.

To improve the speed, efficiency, joy of work and team synergy, our frontend team decided to refine our development processes. After a few completed projects, we got an idea of how to do things better and quicker. Modernizing the approach we’ve been using.

Read more

How to save custom data in cache in Magento 2

Recently I was working on rendering images on a custom template. More precisely, I created a widget for inserting pictures that serve as a picture loader. And by default, the administrator has to input some parameters (width, height, alt) and if he decides, he could upload another image.

Reference for creating a widget tutorial could be seen here. The exciting part of the task was when the widget is saved on some of the Magento pages and loaded on i.e. ‘About Us’, image or images and parameter values have to be saved in the cache.

So when you visit ‘About Us’ another time, image content will be served instantly.

In this article, we’re going to save simple custom data inside the cache and load it when Magento renders the template.

Read more

SEO Checklist for Magento 2 Migration

June 2020 brings us many changes since Magento 1 support is coming to an end. Whether you’re considering building a new store on Magento 2, or you have already started the transition, there are (more than) a few things to keep in mind to ensure your traffic and (more importantly) revenue doesn’t get lost during the migration.

Migration to Magento 2 is stressful for every store owner, but the change is inevitable. We have already prepared a list of the most common SEO mistakes during the migration, but we wanted to do more, so we decided to create this SEO checklist to make your transition as smooth as possible.

Read more

Top challenges and best practices in ERP and eCommerce integration

For every serious eCommerce business, there comes a time to invest in implementing an ERP solution. For every serious business that already operates with an ERP system, there comes a time to open up a new sales channel, an eCommerce website.

In each of those cases, they need strong support from both ERP and eCommerce sides, and finding quality partners that can work together can be a hassle.

We are happy to have found a top notch ERP solutions integrator we can happily work with and recommend to our clients. We talked to Josip Penavić of Adacta, Gold ERP and CRM Microsoft Partner. Read on to learn firsthand some of the challenges and best practices of integrating eCommerce website with an ERP system.

Read more

Calling out all Magento developers who want to improve their testing skills – visit MageTestFest!

Magento. Software Testing. Party. That pretty much sums up 4 crazy days that are expecting developers who’ll go to MageTestFest. Florence (Italy) will host developers who are ready to get blown away by knowledge and expertise of speakers who worked hard to be able to stand in front of us all and share valuable insights! We know the value of this specialized event, that’s why we’re sending our Stjepan Udovicic and Tomislav Nikcevski to get in-depth knowledge and tips & tricks of testing.

Read more

Behind the scenes with one Magento PWA Studio contributor

To kick off the year, I’ve talked to Adrian Bece, one of our frontend developers who has been delving deep into PWAs and is among the most active contributors to Magento’s official PWA Studio. Take a look at what he had to say about the state of PWA in the world of Magento and eCommerce, his analysis of the solutions that are already out there, and a reflection on how contributing to open source projects helps him hone his development skills.

Read more