Since the upgrade of Magento to 2.0 version, the management of discounts became much more user-friendly. But the main question about discounts remains – how to use them the most efficient way? In this article, we will try our best to uncover the answer by explaining:
- how tailoring sale to special occasion empowers its results;
- how to define was the campaign profitable or not by estimating the ROI;
- how to set the discounts in Magento 2 admin panel.
Every Magento extension contains forms. They play crucial role in customer’s interaction not only in standard store operations but also with its most dynamic parts – like reports or other data visualization. The last often contains parameters, that should be selected from a certain range of values – and it’s not only fixed set of predefined options.
It will be good to have such forms enhanced with more rich input elements, which allows the customer to select values in a visual way quickly, precise and with minimal difficulties. This also can make mobile interfaces more usable and robust – which is very important nowadays due to vast mobile devices spread.
The most common data type in Magento forms is numeric. Normally, for entering numbers regular input boxes is used. But it’s quite inconvenient, especially if values needs to be adjusted often or gathered up with other form’s elements. Let’s discover, how it can be enhanced.
The most common way to construct space-saving interface is tabs and expandable panels. This approach is utilized in checkouts, customer basket extensions, product pages and so on. In Magento 1 creating tabbed interface was not quite trivial. It included layout manipulation and CMS blocks added and grouped only in the proper place. Collapsible panels were much easier to create, but they also required an extended scripting and their implementation differed from theme to theme.
This forced customers to use some special extensions or heavily customize their themes (or even use complex theme packs).
Unlike previous releases, in Magento 2 there’s, at least, two ways to easily create tabbed interface just with a few lines of code – through Magento 2 UI Widgets.
Let’s explore how tabbed interface can be built and how it can look like.