This is the usual way to get customerData on frontend. define([ 'uiComponent', 'Magento_Customer/js/customer-data' ], function (Component, customerData) { 'use strict'; return Component.extend({ initialize: function () { this._super(); this.firstname = customerData.get('customer')().firstname; } }); }); Problem: oth the first load of the page, when mage-cache-storage in local storage is cleared, customerData.get('customer')().firstname returns […]
Magento2
Can you please help us how we can add multiselect fields in addColumn? protected function _prepareToRender() { $this->addColumn('field_1', ['label' => __('Field 1')]); $this->addColumn('field_2', ['label' => __('Field 2')]); $this->addColumn('field_3', ['label' => __('Field 3')]); $this->addColumn('field_4', ['label' => __('Field 4')]); $this->_addAfter = FALSE; $this->_addButtonLabel = __('Add'); } how we can add column for […]
How can I change the value of privacy-policy-cookie-restriction-mode link to a link of my choice? I am using Magento 2.3.2. I saw this Magento 1.9 but I do not have such page. Is there something I am missing or did wrong?
I get the following error returned when clicking edit or add new customer within the admin panel. customers–> manage customers –> “edit” or “add new customer” Fatal error: Call to undefined method Zend_CodeGenerator_Php_File::shutdown() in /var/app/current/lib/Zend/Log.php on line 366 Lines 363 to 367 highlighted below { /** @var Zend_Log_Writer_Abstract $writer */ […]
In my Magento 2.3.3 the navigation menu is not showing in the product details page (the menu should appear in the red rectangle area of the image), however all links are functional and it’s possible to save the product. I disabled the browser cache, also checked if all files are […]
I have a strange problem with my special price query update. When I run the query, the special price is updated in the database. But when I reindex and clean the cache, the special price in the backend is always the old price. I have no other references of the […]
Magento 2.3.3, custom theme based on Blank. It’s a very small store with only two categories. I want to display them in the top navigation menu without a dropdown menu. In other words, just a horizontal (inline) list of the two categories, at the top (not the left). Where and […]
I am creating a custom module to override a method buildCustomer() in file app/code/community/Ess/M2ePro/Model/Magento/Customer.php of Magento 1 Module Ess_M2ePro but seem not working. Can you check please. Here what I have so far. app/etc/modules/myNamespace_M2eProFixPassword.xml < ?xml version="1.0"?> true local app/code/local/myNamespace/M2eProFixPassword/etc/config.xml < ?xml version="1.0"?> 1.0 myNamespace_M2eProFixPassword_Model myNamespace_M2eProFixPassword_Model_Customer app/code/local/myNamespace/M2eProFixPassword/Model/Customer.php class myNamespace_M2eProFixPassword_Model_Magento_Customer extends […]
In Magento 1.7, I want to do like after credit memo create product quantity should be deduct. How to do that? Any help would be appreciated. Thanks.