4

i have get the reference URL for your solution... please look at this https://magecomp.com/blog/send-email-to-admin-after-customer-registration-magento-2/ in Your Observer you need to replace setTemplateVars(['post' => $postObject]) with setTemplateVars(['customer' => $postObject]) for send the customer name and email Id to mail. Let me know ...


2

I think it might issue at code. The data for the welcome message section coming from customer-data.In order to understand it, you have to check how Private content worked on Magento 2. Study the links: https://devdocs.magento.com/guides/v2.3/extension-dev-guide/cache/page-caching/private-content.html https://webkul.com/blog/sections-magento-2/ The data ...


2

Create events.xml file app/code/Vendor/Module/etc/events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <event name="controller_action_predispatch"> <observer name="...


1

You can follow these below steps to display to display customer grid into product edit form : app/code/Vendor/Module/etc/di.xml <?xml version="1.0"?> <!-- /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ --> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...


1

Stores > Settings > Configuration -> General -> Web -> Default Cookie Settings By default, the cookie lifetime is set to 3600 seconds, or one hour. If there is no keyboard activity during that time, the current session ends, and customers must log back into their accounts to continue shopping. You interested in Session Cookie, but if customer session ...


1

try out the below code. <?php namespace XX\XX\Controller\Adminhtml\Index; use Magento\Customer\Api\Data\GroupInterfaceFactory as GroupFactory; use Magento\Customer\Api\GroupRepositoryInterface as GroupRepository; class SaveNewCustomerGroup extends \Magento\Backend\App\Action { protected $_resource; protected $_productRepository; protected $...


1

To get quote items of a customer please use below code. You can pass customer object also in place of customer id. <?php protected $quoteModel; public function __construct( ... \Magento\Quote\Model\QuoteFactory $quoteFactory, \Magento\Quote\Model\ResourceModel\Quote $quoteModel .... ) { .... $this->quoteFactory = $...


1

I guess that you are trying to return a new attribute (a custom one) via customer GQL query. The below answer is based on that. Below is the sample code of adding a custom attribute to Customer GraphQl query. Module NameSpace : Kcc Module Name : CustomerGraphQl app/code/Kcc/CustomerGraphQl/etc/schema.graphqls type Customer { sample_attribute: String @...


1

You can achieve the requirement by creating a module with following steps: Step 1: Create registration.php under app/code/STech/LoginProduct/registration.php with below content: <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'STech_LoginProduct', __DIR__ ); Step ...


1

Get Customer Attribute values by Group and Customer Id Create Helper file Data.php Path: {VendorName}/{ModuleName}/Helper/Data.php <?php namespace {VendorName}\{ModuleName}\Helper; class Data extends \Magento\Framework\App\Helper\AbstractHelper { public function __construct( \Magento\Framework\App\Helper\Context $context, \...


1

In your custom_form.xml file <field name="your_field_id"> <argument name="data" xsi:type="array"> <item name="options" xsi:type="object">{Vendorname}\{Modulename}\Model\Classname</item> <item name="config" xsi:type="array"> <item name="dataType" xsi:type="string"...


1

Create Block file in module Customer.php Path : App\Code\{CompanyName}\{ModuleName}\Block\Bookseller\ <?php namespace {CompanyName}\{ModuleName}\Block\Bookseller; class Customer extends \Magento\Framework\View\Element\Template { protected $_customerGroup; protected $_customerFactory; public function __construct( \Magento\Backend\...


1

Path: Magento22/app/code/Rbj/Training/etc/module.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> <module name="Rbj_Training" setup_version="1.0.2"/> </config> Create UpgradeSchema.php file under Setup folder in ...


Only top voted, non community-wiki answers of a minimum length are eligible