Skip to content

100% Private Proxies – Fast, Anonymous, Quality, Unlimited USA Private Proxy!

Get your private proxies now!

How to add custom Info from my custom table in account information admin panel ? Magento 2

With ui component i can’t add my custom data in there , maybe has a alternative ? I added the Customer Account Status, but I did it through InstallData.php, but I need to show there the text from the custom table enter image description here

InstallData.php

    <?php namespace CustomersState\AccountState\Setup;  use Magento\Customer\Model\Customer; use Magento\Customer\Setup\CustomerSetupFactory; use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\ModuleDataSetupInterface;  class InstallData implements InstallDataInterface {     private $  customerSetupFactory;      public function __construct(         CustomerSetupFactory $  customerSetupFactory     ) {         $  this->customerSetupFactory = $  customerSetupFactory;     }      public function install(ModuleDataSetupInterface $  setup, ModuleContextInterface $  context)     {         $  setup->startSetup();         /** @var CustomerSetup $  customerSetup */         $  customerSetup = $  this->customerSetupFactory->create(['setup' => $  setup]);          $  customerSetup->addAttribute(Customer::ENTITY, 'customer_states', [             'label' => 'Customer Account Status',             'input' => 'select',             'required' => false,             'sort_order' => 100,             'visible' => true,             'system' => false,             'type' => 'varchar',             'source' => 'Magento\Eav\Model\Entity\Attribute\Source\Table',             'is_used_in_grid' => true,             'is_visible_in_grid' => true,             'is_filterable_in_grid' => true,             'is_searchable_in_grid' => true,             'option' => ['values' => ['Active', 'Suspend', 'Vacations']],         ]);         $  setup->endSetup();     } } 
Author AdminPosted on July 21, 2019Categories buy best proxiesTags account, admin, custom, from, info, information, Magento, panel, table

Post navigation

Previous Previous post: Replacing text in a string with recursion and regex
Next Next post: Pegar a posição em um loop for em java?
100% Private Proxies – Fast, Anonymous, Quality, Unlimited USA Private Proxy! Proudly powered by WordPress

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123