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 ...
If you have created module the same as this GitHub repo. you have to update the below code in your
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/...
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" />
You can change my account link from Url.php file which is located at
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:
At Vendor\Module\Observer\NewCustomer, observer you need to use
$editedCustomerEmail = $observer->getEvent()->getCustomer()->getEmail();
$editedCustomerEmail = $observer->getEvent()->getEmail();
at customer_register_success event's Observer, you can get Customer data using $observer->getEvent()->getCustomer().
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/...
You forgot , after \Magento\Customer\Model\Customer $customerFactory it should be like below.
public function __construct(
AccountConfirmation $accountConfirmation = null,
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)