17 votes

Magento 2.2.3 an unspecified error occurred please contact us for assistance at customer login

You can check error. Go to file vendor/magento/module-customer/Controller/Account/LoginPost.php and put these lines $message = $e->getMessage(); $this->messageManager->addError($message); ...
Shashank Kumrawat's user avatar
15 votes
Accepted

Magento 2 Get category active filters name and id in Category page

Please try the below code its working for me: Below code will return the filters which are already applied to the category page or seach result page by customer, In magento you can say State $...
Sukumar Gorai's user avatar
14 votes

Magento 2.3 favicon and logo upload does not take hold

File path : /vendor/magento/module-theme/view/adminhtml/ui_component/design_config_form.xml Find and replace : <field name="header_logo_src" formElement="fileUploader"> To <field name="...
Manoj Pal's user avatar
  • 1,047
13 votes
Accepted

Product saleable qty not showing and update in magento 2.3

I have same issue with resolved, take inventory_source_item table backup first. Run sql query: INSERT IGNORE INTO `inventory_source_item` (source_code, sku, quantity, status) select 'default', sku, ...
Manoj Pal's user avatar
  • 1,047
11 votes
Accepted

Free currency converter fixer.io stopped working

The Free Currency Converter API module: app/code/MyCompany/FreeCurrencyConverter/etc/module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
krybbio's user avatar
  • 1,258
11 votes
Accepted

Magento 2 : When adding 10 (or any number) products to cart with the same sku is there a way to not increment?

If every time want to add a separate product in cart, then you can pluginize representProduct method located in Magento\Quote\Model\Quote\Item Your [Vendor]/[Module]/etc/di.xml looks like below <?...
Murtuza Zabuawala's user avatar
11 votes
Accepted

PHP Fatal error - Call to undefined method Magento\\Catalog\\Model\\Product\\Type\\Simple::getConfigurableAttributeCollection()

I had the same problem and when I changed $objectManager->get('\Magento\Catalog\Model\Product')->load($productId) into $objectManager->create('\Magento\Catalog\Model\Product')->load($...
Zsolti's user avatar
  • 746
9 votes

Magento2.2.3 - Admin store configuration is save but not display in admin panel

I get the solution to this problem. If anyone faces this problem, Require to remove var/page_cache and var/session folder. After saving the configuration, you can able to see changes in the admin ...
Emipro Technologies Pvt. Ltd.'s user avatar
8 votes

Extention Attributes in payload return as null in backend

While Aleksandr's answer works, this approach overrides the entire payload-extender.js file which is not the intended purpose of this. This approach, if used among multiple extensions on your site at ...
Darren Felton's user avatar
7 votes
Accepted

Create Multi Website in magento 2

Create a Websites and it's relevant Store and StoreView from Admin > Stores > All Stores Go to Stores > Configuration, Select website which you have created. Then Go to Web and change both Base URLs &...
Hiren Bhalodiya's user avatar
7 votes
Accepted

Magento upgrade from 2.2.3 -> 2.3 error in module-configurable-product

As mentionned in this issue on the M2 github Search in the database in table eav_attribute for attribute manufacturer and copy the ID. With this id search in catalog_eav_attribute. Now enter the ...
Vinz's user avatar
  • 985
7 votes

PHP Fatal error: Cannot redeclare __() (previously declared in /vendor/magento/framework/Phrase/__.php:15) in /app/functions.php on line 23

This is original content of app/functions.php file: <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * Create value-object \Magento\...
Adrian's user avatar
  • 366
6 votes
Accepted

Add custom validator on phonenumber in checkout

I ended up overwriting rules.js. I added the following: 'validate-phonenumber': [ function(value) { if (value.length < 10) { return false; } else { ...
Sanne's user avatar
  • 1,316
6 votes
Accepted

Magento 2 How to change currency symbol position left to right

You can do it by writing single event observer Create registration file: Vendor\Module\registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\...
Nikunj Vadariya's user avatar
6 votes

Magento 2: Error undefined index while upgrading M 2.2.5 > M 2.3.1

The accepted answer is not the right one, it's not sure that those wordpress tables are causing the error. Find the incriminated table first SELECT TABLE_NAME, CONSTRAINT_NAME FROM ...
Francesco Gasparetto's user avatar
5 votes

Magento 2 : Save date and MultiSelect field value added in Ui_Component

This is completely untested but here goes. As I can see for the other date type fields, the value needs some processing before saving it into the db: https://github.com/magento/magento2/blob/2.2/app/...
Marius's user avatar
  • 198k
5 votes

Magento2.2.3 - Admin store configuration is save but not display in admin panel

First you need to check if value is saved in a database. If it is saved but is not showing in admin all you need to do is go to System>Cache Management and click on Flush Cache Storage link next to ...
iva's user avatar
  • 471
5 votes

Integrity constraint error referring to quote_item table while adding product to cart

I ran into the same problem when i tried to change data on quote items with the checkout_cart_product_add_after event. This event is fired after every product add, but before the cart is saved. Check ...
remklov's user avatar
  • 331
5 votes

Make sticky header for Magento 2 problem

You can use default M2 Sticky define([ 'jquery', 'mage/mage', 'domReady!' ], function ($) { $('#header').mage('sticky', { container: '#maincontent', spacingTop: 0 ...
Sanju's user avatar
  • 555
5 votes

Magento 2 : Unique constraint violation found when adding product, categories or mega menu items

Solved in Magento 2.4.3! For me the problem was that the afterReplace function in Magento\CatalogUrlRewrite\Model\Category\Plugin\Storage added duplicate url rewrites to the ...
Henry Timmerman's user avatar
5 votes

Redirect from plugin Magento 2

Below is a working example from my own code. It only requires 2 files. Create di.xml file <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Shawn Abramson's user avatar
5 votes

Extention Attributes in payload return as null in backend

In Magento v2.2.2 payload extender has been added to checkout. This feature allows third-party extension to modify the payload for the shipping address selection process. Magento Open Source 2.2.2 ...
Aleksandr Ishchenko's user avatar
5 votes
Accepted

Make search bar visible in mobile view

Add the below lines to your css: .block-search .minisearch input#search{position:static;} .block-search .minisearch .label{display:none;} It works for me on luma theme. Use the above code under ...
Sukumar Gorai's user avatar
5 votes

PHP Fatal error - Call to undefined method Magento\\Catalog\\Model\\Product\\Type\\Simple::getConfigurableAttributeCollection()

Check your custom modules or extensions and find if you are using either of the following -: Magento\Catalog\Model\Product (in the constructor) $this->_product->load($id) or $this->...
Gagan Nayyar's user avatar
5 votes

Magento 2.2.3 - Remove price from select field on product page

This is an update for Magento 2.2 and 2.3 --- the proper way to remove this is to override a JavaScript file into the active theme, and remove a section of code The culprit is vendor/magento/...
Cadence Labs's user avatar
5 votes
Accepted

display all customers using console command magento2.2.3

First, you need to create di.xml in your customer module(I am assuming that you already know how to create a module) app/code/VENDOR/MODULE/etc/di.xml <config xmlns:xsi="http://www.w3.org/2001/...
Keyur Shah's user avatar
4 votes
Accepted

Custom image upload attribute for category not working in Magento 2.2.3

Create module using below code: create registration.php file at app/code/Prashant/CustomImage/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\...
Prashant Valanda's user avatar
4 votes

Currency switcher not working for currency AED in Magento 2

Finally, issue solved. it was with currency rate. Admin ==> Stores ==> Currency Rates Flush Cache.
Shameem Ali's user avatar
4 votes
Accepted

Magento 2 : How to create custom Fieldset and Add custom attribute In It?

I think, this will help you. <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:...
Amit Maurya's user avatar
  • 2,871
4 votes

Dependecy error Magento 2 ('sectionLoadUrl' error)

You should use define in your jquery.cartAjax.js file instead of require, also pass $ as an argument so you can use it in the ajax call, require is specifically designed for phtml files and define for ...
Pascal Wientjes's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible