All Questions
Tagged with magento-core magento2
18 questions
0
votes
1
answer
66
views
Magento User Session
It's displaying the maintenance image.
And it works fine in incognito or clear browser cache.
But how to say to all customers refresh their browser cache?
Cookie Lifetime is set 3600.
Is there any ...
0
votes
0
answers
188
views
how to override framework xml
Is there any way to override core XML file like this
vendor/magento/zendframework1/library/Zend/Locale/Data/fa.xml
at this file, we have some hidden characters that should be removed or replaced ...
0
votes
1
answer
217
views
Add code to a method without edit Magento core file
I'm in this condition:
Magento 2.3.4 with Elasticsuite installed and I want to customize the search box so when #search get focus the page get darker adding a <div class"blury"></div>. I ...
0
votes
1
answer
43
views
How to find out which Magento module is customize/extended in Magento EE 2.3.x?
How to find out which Magento module is customize/extended in Magento EE 2.3.x ?
Is there any CLI? or any other way to get this done?
Please reply as soon as possible.
1
vote
1
answer
6k
views
Magento2 - Extend Magento Block class in custom module
Basically, I want to use some additional functionality in the layered navigation file Magento_LayeredNavigation::layer/view.phtml file for that using Objectmanager my code works fine. (Also I don't ...
3
votes
2
answers
153
views
Magento 2. Technical Guidelines. Module Version Dependency Question
I am looking at the official docs here
Why is it that when changing the preference of a class marked with @api you can depend on a MAJOR version but when you change the preference of an interface ...
0
votes
1
answer
1k
views
Magento 2 option products of bundle are not showing in my orders magento core
I need the Qty of bundle options that I have ordered.
I can see getChildrenItems() on getting the count it returns me 1, it doesn't include child products.
Bundle/templates/sales/order/items/...
0
votes
1
answer
437
views
Tax/VAT field configuration is not working on multistore Magento2 Core
I have a multistory website as Retail-Website and Wholesale-Website
Configuration with fresh Magneto2.2 at Store >> Configuration >> Customer Configuration >> Show Tax/VAT Number
Retail-Website
...
1
vote
1
answer
1k
views
Plugin class Magento\NewRelicReporting\Plugin\StatePlugin doesn't exist
I just update my Magento 2.2 core components using the command composer update -vvvv and then I got a lot of updates which caused this issue below when I tried to run php bin/magento setup:upgrade.
...
4
votes
2
answers
2k
views
Magento 2 - Plugin explanation and magento core code
I've been creating my own plugins in Magento 2 however I'm struggling to understand references to the Magento core libraries. Say I have a plugin like the one below, why do we know that GetName is in ...
1
vote
0
answers
438
views
Magento 2: How to check If Magento Core files got corrupted
I am working with Magento 2, Installed with Sample Data given in Luma theme. I have tried to Delete all products from Magento backend, It Did not complete the process. Then I tied to Delete using SQl. ...
14
votes
5
answers
28k
views
Magento 2 Add new field to Magento_User admin form
I am looking for a good approach with add/update already prepared (by default) Magento User's (module-user) form. The form can be reached in admin panel by this path:
System > All users > [...
3
votes
1
answer
255
views
Magento2 Indexer ATTRIBUTES_CHUNK_SIZE
In Magento\Catalog\Model\Indexer\Product\Flat\Action\Indexer there is one constant:
/**
* Maximum size of attributes chunk
*/
const ATTRIBUTES_CHUNK_SIZE = 59;
reference: https://github.com/...
0
votes
1
answer
2k
views
What is override preference, block, model and preference? [duplicate]
I want to edit Magento 2 core function:
/**
* Build category URL path
*
* @param \Magento\Catalog\Api\Data\CategoryInterface|\Magento\Framework\Model\AbstractModel $category
* @...
4
votes
2
answers
8k
views
Module 'Magento_CatalogInventory' has already been defined
I'm getting this error after I ran the setup:upgrade command and this was after the upgrade to Magento 2.1.3
Module 'Magento_CatalogInventory' from '/var/www/vhosts/website/httpdocs/app/code/...
8
votes
2
answers
3k
views
Magento 2 - Programmatically Check Magento Version (CE / EE)
Does anyone know the best way a module can check if it is being executed on Magento 2 Enterprise Edition and which exact version number is being used?
1
vote
1
answer
469
views
Good or bad Idea to change magento 2 core files?
Why is it not recommended to modify the Magento 2 core files?
I'm guessing that when Magento 2 updates it replaces those modified files with the new files so it would be a best practice to create a ...
0
votes
2
answers
446
views
Magento2 activate custom module that extended core module
lets say I've created a custom module that will extend some functionality as plugins from Magento_Catalog core module and lets call it MyModule.
MyModule has already been registered and activated.
I ...