New answers tagged

0

Found it finally: a bunch of event observers were causing in infinite loop under very special circumstances, a bad combination of products in cart, applied cart rules and active cart rules. And right in the middle the Ced_MauticIntegration_Model_Observer::sendAbandonedCartDetails() re-initializing the quote building process. Issue was 'solved' by ...


0

If you have created module the same as this GitHub repo. you have to update the below code in your app/code/Msquared/CustPriceRange/view/frontend/layout/custpricerange_customer_index.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/...


1

You can achieve by removing the block from customer_account_index.xml Create customer_account_index.xml layout file in your custom module or theme directory and add below code: <referenceBlock name="customer_account_dashboard_address" remove="true" />


0

You can change my account link from Url.php file which is located at vendor/magento/module-customer/Model folder. Find getAccountUrl() function and change url in it. But change in directly core file is not a good idea so i suggest you override model file and then do changes as per your need. For Override Model in Magento 2 refer below link: https:/...


0

Try following steps 1) di.xml file app/code/Mp/Accountmanager/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="Magento\Customer\Controller\Account\EditPost" type="Mp\Accountmanager\Controller\...


1

At Vendor\Module\Observer\NewCustomer, observer you need to use $editedCustomerEmail = $observer->getEvent()->getCustomer()->getEmail(); instead of $editedCustomerEmail = $observer->getEvent()->getEmail(); at customer_register_success event's Observer, you can get Customer data using $observer->getEvent()->getCustomer(). At ...


1

You need to compile your dependency injection that is di.xml Try this php bin/magento setup:di:compile php bin/magento cache:clean


1

You will need to remove all generated files. The problem is the scope has changed but Magento is not updated about this yet. Running bin/magento setup:upgrade will clear the generated folder for you. Depending on what version of Magento you are on this will be in var/generated or generated/ If you have Magento in a "compiled" mode you will have to run bin/...


1

Try this rm -rf var/generation/* bin/magento setup:di:compile bin/magento cache:clean


0

You forgot , after \Magento\Customer\Model\Customer $customerFactory it should be like below. public function __construct( StoreManagerInterface $storeManager, Data $dataHelper, RequestInterface $request, AccountConfirmation $accountConfirmation = null, AccountManagementInterface $accountManagementInterface, ...


3

The \Magento\Customer\Model\ResourceModel\Customer\Collection class has no method setWebsiteId. If you want to filter customer collection by website id you must set website_id as a filter field: /** @var \Magento\Customer\Model\ResourceModel\Customer\Collection $customerCollection */ $customer = $customerCollection->addFilter('website_id', $websiteId) ...


Top 50 recent answers are included