We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [magento-core]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11
votes
5answers
11k 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 > [...
7
votes
2answers
2k 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?
4
votes
1answer
758 views

What is the best way to override Mage/Core/functions.php in Magento?

Magento has an elegant way to override it's modules. But what I have done till now is override Blocks, Models, Helpers and controllers. But this file Mage/Core/functions.php doesn't appear to ...
4
votes
2answers
2k views

How to Override Mage_Catalog_Block_Product_View with a Custom Module

I am trying to override Mage_Catalog_Block_Product_View through a custom module in order to strip html tags out of the default meta description. I'm not sure what I'm missing or if I'm making any ...
3
votes
2answers
168 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 ...
3
votes
2answers
5k 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/...
3
votes
1answer
112 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/...
3
votes
2answers
142 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 ...
3
votes
1answer
161 views

Core Topics to master Magento 2 [closed]

I have some basic knowledge of magento 1 and magento 2 as well. I want to be exceptionallly good in magento 2. I have also decided to have magento certification when it will be available for magento 2 ...
2
votes
1answer
4k views

Difference between magento 2.1 and 2.2

I'm currently working on Magento 2.2. And found that In Magento 2.2 core team made many changes in files and folder structure, deleted many files, replaced classes and many other things. One other ...
2
votes
2answers
62 views

How to override post-code.js which is in vendor/module-ui?

For testing purpose, we have modified the core file post-code.js which is in the path /vendor/Magento/module-ui/view/base/web/js/form/element and see it's working fine. So we have decided to override ...
2
votes
1answer
1k views

Strange behaviour of app/code/core/Mage/Core/functions.php file

I have Magento 1.9.3.1 CE installed and unaltered in my Uwamp localhost. I was just casually testing some functions from the app/code/core/Mage/Core/functions.php file, by calling those functions in ...
2
votes
0answers
66 views

Changing type on WSI file will not allow for an override

In app/code/core/Mage/Catalog/etc/wsi.xml From the tag for this: <xsd:complexType name="catalogProductCreateEntity"> I want to delete or change type with a custom module <xsd:element ...
2
votes
2answers
505 views

how to override any .phtml or class file in magento2 using custom module?

Well I have an idea to create custom module in magento2 but when it comes to override code functionality I stucks. for example I have to override this file default.phtml in /vendor/magento/module-...
1
vote
1answer
386 views

What are some code optimization tips? [closed]

What do you guys suggest to modify in Magento core to speed it up, without breaking anything? Like disabling modules via xml files or modifying checkout to remove observers.
1
vote
1answer
143 views

Core files modified, what next?

My developer with questionable code practices modified a few core files, We tried to integrate a new theme and a few blocks are posing a problem. The site has been running for over 6 months and I don'...
1
vote
1answer
35 views

Magento 2.2.5 : public function getConfiguredAmount(): \Magento\Framework\Pricing\Amount\AmountInterface

From this \vendor\magento\module-wishlist\Pricing\ConfiguredPrice\ConfigurableProduct.php File I find below code: public function getConfiguredAmount(): \Magento\Framework\Pricing\Amount\...
1
vote
1answer
331 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 ...
1
vote
1answer
2k views

Save file to database

I need to save an uploaded file to the database preferrably in the table core_file_storage as a blob and retrieve it later. I want this connected to a customer. Currently the files are being saved in ...
1
vote
0answers
82 views

How to override core vendor/magento/zendframework1/library/Zend/Locale/Data/ar_SA.xml

I want to override vendor/magento/zendframework1/library/Zend/Locale/Data/ar_SA.xml because for my Arabic store currency symbol was not working. By referring to this URL I got the solution. But ...
1
vote
2answers
39 views

Cron Failure - Mage_Core_Exception

I get this from the error log all the time. Cron Failure catalog_product alert: ---EXCEPTION--- exception 'Mage_Core_Exception' with message 'Invalid callback: Model for productalert/observer:...
1
vote
0answers
80 views

Magento 1.9.3.1 Uncaught Error: Class 'Magento_Db_Adapter_Pdo_Mysql' not found

I am getting error frontend and backend both side Fatal error: Uncaught Error: Class 'Magento_Db_Adapter_Pdo_Mysql' not found in /app/code/core/Mage/Core/Model/Resource.php:175 Stack trace: #0 /...
1
vote
0answers
27 views

Magento 2 BlockRepository.php can't understand code

I'm newbie at Magento 2, and trying to study and research code to use all business logic for my future work. I found method getList at BlockRepository.php at https://github.com/magento/magento2/blob/...
1
vote
0answers
176 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. ...
1
vote
0answers
383 views

Magento 1.9.3.x core issues and possible fixes?

Magento 1.9.3.7 This is not a real question, just a compilation of known bugs in the latest Magento version. I would like to have a complete list of known bugs, so that they can be fixed in Magento-...
1
vote
1answer
404 views

What is custom.css in the default admin theme for?

I've just been adding my own css file to the admin section of Magento 1.9, which I have done via creating a bespoke module - as suggested by other users on this site. However, when doing so I noticed ...
1
vote
1answer
594 views

How to create custom registration form in magento for seller [closed]

How to make a custom registration and login form for sellers in magento. I'm using marketpalace extension , and want to make a custom registration form.
1
vote
1answer
151 views

What does this Magento base js line mean?

This line of javascript is in the Magento base code in app/design/frontend/base/default/template/persistent/checkout/onepage/billing.phtml: $('billing-address-select') && billing....
0
votes
2answers
383 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 ...
0
votes
3answers
249 views

Overriding Magento CartController not working

I am trying to override Magento Core CartController, But the core CartController is loading config.xml (inside community/Company/BnOverride/etc/) <?xml version="1.0"?> <config> <...
0
votes
1answer
276 views

What's the second parameter for in Mage::getModel

Sorry for asking, but I searched on google, but can't find the answer. In app/core/Mage/Sales/Model/Convert/Order.php on line 513 there is this rule: $this->_order = Mage::getModel('sales/order')-...
0
votes
2answers
367 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. ...
0
votes
1answer
59 views

How to create pull request to Magento CE 1.9?

I found bug in core module and want create pull request with fix, but didn't find how I can do that. How can I do that?
0
votes
1answer
948 views

Adding attribute filter sidebar in magento 1.9

Good morning, I want to add a filter of attributes like this.Like this I should put the attribute in static block first or how i can make it possible. Your answer will be very helpful. Thanks.
0
votes
2answers
1k views

Modify Changes to core files to stay even after Magento Updates

I made changes to Magento Core files recently but those changes were overridden after a minor update to Magento CE 1.9.2.4 from version 1.9.2.3. Now I have to do those changes again. These are ...
0
votes
1answer
363 views

What if I change files in design/adminhtml/default/default/template/../../ directory

I need to change order page of magento's admin panel location of this page is- design/adminhtml/default/default/template/sales/order/view/tab/info.phtml Somewhere I heard if you want to make ...
0
votes
1answer
262 views

Magento Update & Local Host to Live Server [closed]

I have been working on a Magento site remotely that is now ready to go 'live' (it was worked on remotely as to not make any changes to the live site until it's ready). I plan on putting all the 'app' ...
0
votes
1answer
51 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
1answer
37 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 ...
0
votes
2answers
594 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 * @...
0
votes
1answer
307 views

Cleared core_url_rewrites and lost custom urls

I was having an issue with the urls on the frontend with numbers like "-1" appending to the end of my product's url keys. I completely cleared out the core_url_rewrites and reindexed however now the ...