KB Category: Tips and Tricks

  • How to insert custom elements to customer programmatically in Magento 2

    How to insert custom elements to customer programmatically in Magento 2? In this topic I will show you how to insert custom elements to customer programmatically First you need to create file InstallData.php in your setup folder: app/code/Webnexs/Example/Setup/InstallData.php <? namespaceWebnexs\Example\Setup; use Magento\Eav\Setup\EavSetup; use Magento\Eav\Setup\EavSetupFactory; use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\ModuleDataSetupInterface;  class InstallData implements InstallDataInterface {…

  • How to build CMS page by source code in Magento 2

    In Magento you can build a CMS pages in admin>CMS>Page. Moreover, you can also build it by setup or improve module. In this article, you can know how to add CMS page in to Magento 2 by setup script through precise steps: Step 1: build UpgradeData.php File Step 2: Setup the module version Step 3:…

  • 4 techniques to analyze the Magento version without coding

    Learn how to check and analyze the Magento version without coding in the platform and change. The Magento Version is one of the Essential parts that all Magento webmasters should know. Every version has its benefits and drawbacks that can directly affect the load speed, security and conversion rate of webstore owners should know their…