I am writing an Observer to MagentoCustomerAccountIndex but the Objects from class MagentoCustomerModelCustomer return null when getExtensionAttributes is executed. $customer = $customerFactory->create()->load($customerID); //$customerRepository->get($customerID); $ext = $customer->getExtensionAttributes(); if($ext == null){ throw new Exception(" var ext = null"); } I used CustomerRepository and CustomerFactory to get $customer
Magento2
I’m trying to follow the devdoc instructions for a CLI upgrade from 2.3.2 to 2.3.3 but I’m getting this Connection refused error partway through the process. My app/etc/env.php looks like this… 'db' => [ 'table_prefix' => '', 'connection' => [ 'default' => [ 'host' => '127.0.0.1', 'dbname' => 'my_database_name', 'username' […]
I am integrating shipping conditions in my website.Currently it Flat rate is enabled with 140 Rs per order and it is working fine.Also I have created one cart rule coupon type where condition is if order more than 499 then shipping cost should free.Everything working fine. Now there is a […]
Sometimes when I added products to the cart or I type wrong my password, I see the warning message in the checkout success page. How could I fix it?
In Magento 2.3 I want to append a shipping method to my collection of methods but it’s not working. This is what I’m doing: I’m selecting the cheapest rate from the collection of rates with $cheapestRate = $this->getResult()->getCheapestRate(). Then, I reset the original collection with $this->getResult()->reset() I append the cheapest […]
Background: I have tried to bulk update attributes for my product but it fails. After digging around I can see that when I open a product for edit, “the Create Permanent Redirect for old URL” is greyed out, as it should be since no change has been made, but it […]
I am trying to add/ remove a few links from this line in the header, however the code is not a block, and so is not available through the backend. Each part is its own block, and though I found the search bar, I have not found the part relating […]
Hope you are doing well! I have get issue when load product grid page with param is p=2. Fatal error: Allowed memory size of xxx bytes exhausted (tried to allocate xx bytes) in /xx/vendor/magento/framework/Interception/PluginList/PluginList.php on line 266. My php.ini file is set memory_limit = -1. I don’t know how to […]
I’m importing products programmatically from xslx file. My script was working on Magento 2.3.3 installed from composer, but right now on version installed from zip it fails. While saving the product I’m getting this error: “The “Product Name” attribute value is empty. Set the attribute and try again.” I found […]