New answers tagged

0

namespace XYZ\AdminViewLink\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; use Magento\Eav\Model\Config; use Magento\Customer\Model\Customer; class InstallData implements ...


0

It seems like cache issue. Use this below code to get fresh instance of customer session : use Factory Class : \Magento\Customer\Model\SessionFactory protected $_customerSessionFactory; public function __construct( .... \Magento\Customer\Model\SessionFactory $customerSessionFactory, .... ) { .... $this->_customerSessionFactory = $...


1

I would suggest below reference code. There are two ways to do this Create a new layout that will work filter based on the customer group. Forex customer_group_general.xml. In this file, you can hide/remove the left navigation link which you have added using the XML file. Please follow the steps to create a new layout: Create a new module Add di.xml file ...


0

first override file to your theme Magento_Customer/layout/customer_account.xml and add this <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Customer ...


0

For a better understanding of how to organize header links, the following documentation link might help you. https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/layouts/layout-practice.html https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/layouts/layout-practice.html


0

You can find this function in Magento_root/vendor/magento/module-customer/Block/Form/Register.php If you look in register.phtml file you will get namespace in comment area in top of the page. using that you can debug it. If this helps you then hit like. Thank you Hiren Patel


Top 50 recent answers are included