In this post we want to share our expertise on how to create a category attribute in Magento 2. As you may have noticed, we need to change (add or customize) category attributes from time to time. We have done it many times for Magento 1 and now we faced the same task in Magento 2. This process is very similar for both Magento versions, however there are some differences. So let’s check how we can do it step by step.
Every year we witness new players emerging in the space of eCommerce platforms. More than often, they come out of nowhere and disappear before gaining any significant traction, but sometimes we have a chance to look at very promising candidates from companies with strong reputation in the field. Here’s one of the latter: an eCommerce platform from Oro Inc, the creators of a quite powerful open-source CRM system – OroCRM. Though it’s still in the beta testing stage at this point, we simply couldn’t miss the opportunity to dig into a new product from the company we’ve worked with for years. Meet OroCommerce!
It has never been easier to create a development environment. No meter what operation system you use with Docker you can build the exact configuration you need. In this post we will provide steps for creating a sample Magento development environment configured in a single docker-compose.yml file.
Creating a custom theme in Magento 2 involves a process of registering your theme. In this post we will describe how to do it. All the awesome theme customizations are up to you.
Every unit test ninja faces troubles whenever he wants to test some real class functionality. Have you ever invoked toHtml() method of some block or beforeLoad() method of any collection? If you want to do it, you will need to mock a lot of classes that depend on other classes and so on. You would need to mock all of them, which would take a lot of time and effort. In a long run, you may blow up deadlines and it would really suck. Yes, you can try to change your testing strategy to avoid invoking such methods. But what if you still need to test them? I’m going to show you how I handled this problem.
Sometimes Magento developers face the need to work with Magento caches programmatically. For example, when you develop your custom module, which renders some content on front-end and this content can be managed via Admin Panel. Let’s say, it is cached by Full Page Cache (FPC). In this case you will need to notify the user that one of the cache types is invalidated and should be refreshed in order to have the changes applied. Or you will even want to refresh the FPC automatically on each modification. Magento 2 allows to perform it very quickly and easily.
If you develop OroCRM applications, you know that you develop Symfony applications. And you can improve your efficiency by using a good integrated development environment (IDE) and some additional tools. We use PhpStorm in development, which is a JetBrains product (maybe the best of the IDEs), and we also use a great tool – Symfony Plugin.
Improvement of design and illustration skills is a daily challenge for us. Now we are looking forward to take our illustrations and artworks to a higher level. The best place for exchanging new ideas, techniques, getting inspired and meeting professionals in the sphere of digital art is Kiev CG Craft 2016.
In the previous post we have described how to add a new widget in Magento 2. As it was mentioned, each widget field has its own input type. The input type allows determining what graphical interface component will be used to represent this field. Magento 2 has a set of simple input types out of the box such as input field, dropdown etc. Also, it has more complex components: products chooser, rules conditions component, CMS block chooser and others. But in some cases you need to add your own input type, for example if you want to allow choosing an image from media gallery in your widget configuration. In this post we review how to add an image chooser/uploader to your widget.