Daily Archives: November 24, 2019
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 […]
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 */ […]
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?
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 […]
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 […]