Skip to content

magento man

magento2 i have to try to product grid custom column data pass

define([ ‘mage/adminhtml/grid’ ], function () { ‘use strict’; return function (config) { var selectedProducts = config.selectedProducts, categoryProducts = $H(selectedProducts), gridJsObject = window[config.gridJsObjectName], tabIndex = 1000; /** * Show selected product when edit form in associated product grid */ $(‘bliss_products’).value =… Read More »magento2 i have to try to product grid custom column data pass

Call to a member function getCode() on null at /home/public_html/vendor/magento/module-store/App/Action/Plugin/Context.php:148

i am getting this error in exception.log main.CRITICAL: Error: Call to a member function getCode() on null in /home/uraircon/public_html/vendor/magento/module-store/App/Action/Plugin/Context.php:148 the concerned context.php is as below. As per log error is on line 148 which is $defaultStoreCode = $this->storeManager->getDefaultStoreView()->getCode(); in below… Read More »Call to a member function getCode() on null at /home/public_html/vendor/magento/module-store/App/Action/Plugin/Context.php:148

How to use base Magento’s form element checkbox in custom template?

Magento 2.4.6 // vendor/module-user-access-control-admin-ui/view/adminhtml/ui_component/customer_form.xml <form xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Ui:etc/ui_configuration.xsd”> <fieldset name=”test_control”> <!– Profile field –> <field name=”profile” formElement=”select” component=”Vendor_UserAccessControlAdminUi/js/form/element/profile”> <argument name=”data” xsi:type=”array”> <item name=”config” xsi:type=”array”> <item name=”filterOptions” xsi:type=”boolean”>false</item> <item name=”multiple” xsi:type=”boolean”>false</item> </item> </argument> <settings> <label translate=”true”>Access profile</label> <elementTmpl>Vendor_UserAccessControlAdminUi/form/element/profile</elementTmpl> </settings> </field> <field formElement=”checkbox”… Read More »How to use base Magento’s form element checkbox in custom template?