Tag: XML

  • Custom Frontend Payment Validation in Magento 2

    In this article, I will go through validators used for payment method forms in Magento 2 and show how to create a new custom validator. Overview Sometimes payment methods require additional frontend validations. Whether we want to customize validation message or add extra checks before payment form is marked as valid and data can be […]

  • Magento 2.1.3 Payment Changes Overview and Recommendations

    New Magento 2.1.3 and Magento 2.0.11 releases include payment enhancements and improvements. Changes affect Paypal, Braintree and Authorize.Net payment modules in Magento Community Edition. In this article, I review changes in the Magento\Payment module. Also, I will answer the question about backward compatibility for custom payment integrations. After reading this article you will know: What have new […]

  • Database Query Logging in Magento 2

    In Magento 2.x as well as Magento 1.x there is an option to enable database logging. It allows to profile all queries in the system and perform optimization if necessary. In this article, I will show you how to enable database logging for MySQL adapter in Magento 2. In my previous article, I wrote about separate […]

  • Magento 2 Modal Widget in Use

    In this article, I will show you how to implement new Module Version field for your Custom Module configuration by using JavaScript Modal Widget component from Magento 2 UI Library. Overview Let’s say you want to show module version somewhere on the configuration settings page of a custom module. It might be helpful for Merchants […]

  • New Database Connection in Magento 2

    Magento 2 gives a flexible mechanism for managing database connections. This feature was slightly refactored compare to Magento 1.x release. In this article, we will set up new database connection for custom resource model in Magento 2. Overview After successful installation, Magento 2 system creates app/etc/env.php configuration file. This file is most important due to a sensitive […]