Skip to main content

Questions tagged [magento-core]

Filter by
Sorted by
Tagged with
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 ...
Aaron Wang's user avatar
0 votes
1 answer
224 views

What is the purpose of `$_useIsObjectNew`

In magento I autogenerated, with the use of the Magento extension in phpstorm, some models for use. In those autogenerated models I noticed that in the __construct() methods $this->$_useIsObjectNew ...
Tschallacka's user avatar
1 vote
2 answers
105 views

Missing Core Bundle Extension - Magento Integrity Scan?

I am missing a core module bundled with magento 2.4.X I have failed to find anything that magento may offer like an integrity scan or verify core modules command that would let me resolve this issue ...
Remm's user avatar
  • 111
0 votes
1 answer
2k views

Magento 2 Invalid template file

I am trying to override sales_order_create_index.xml to remove the custom payment method but getting this error 1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid ...
Bushra's user avatar
  • 62
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 ...
gh darvishani's user avatar
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 ...
KaMZaTa's user avatar
  • 235
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.
Roshan Rakesh Yadav's user avatar
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 ...
Tirth Patel's user avatar
  • 1,049
2 votes
0 answers
802 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 ...
chris's user avatar
  • 341
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 ...
vitoriodachef's user avatar
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/...
fernandus's user avatar
  • 484
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 ...
fernandus's user avatar
  • 484
1 vote
2 answers
64 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:...
The Denster's user avatar
2 votes
2 answers
248 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 ...
Siva's user avatar
  • 1,130
1 vote
0 answers
168 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 /...
Vinod Kumar's user avatar
  • 2,065
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. ...
Rafael Corrêa Gomes's user avatar
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 ...
Greg's user avatar
  • 399
1 vote
1 answer
109 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\...
Prashant Valanda's user avatar
1 vote
0 answers
35 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/...
Alex Belkin's user avatar
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. ...
JB Pakalapati's user avatar
2 votes
1 answer
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 ...
Prince Patel's user avatar
  • 22.9k
1 vote
0 answers
474 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-...
sv3n's user avatar
  • 11.7k
2 votes
1 answer
2k 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 ...
Vicky Dev's user avatar
  • 1,992
1 vote
1 answer
493 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 ...
RichardB's user avatar
  • 325
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 > [...
Rob's user avatar
  • 419
3 votes
1 answer
199 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 ...
Sharma's user avatar
  • 123
1 vote
1 answer
706 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.
Arun Kumar's user avatar
3 votes
2 answers
718 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-...
Yogesh Raghav's user avatar
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/...
Sinisa Nedeljkovic's user avatar
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 * @...
Ramesh Pardhi's user avatar
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/...
DarthVegan's user avatar
0 votes
3 answers
314 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> <...
user2638108's user avatar
1 vote
1 answer
168 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'...
Magento Merchant's user avatar
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?
TiEul's user avatar
  • 1,297
0 votes
1 answer
63 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?
UnnnameD's user avatar
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 ...
Jiyaad.D's user avatar
  • 448
0 votes
1 answer
1k 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.
Sandro's user avatar
  • 47
0 votes
1 answer
364 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 ...
mcampa20's user avatar
2 votes
0 answers
75 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 ...
brentwpeterson's user avatar
0 votes
2 answers
2k 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 ...
Sumit's user avatar
  • 37
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 ...
Lachezar Raychev's user avatar
0 votes
1 answer
391 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 ...
Anup Chaudhary's user avatar
0 votes
1 answer
481 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')-...
Refilon's user avatar
  • 127
4 votes
1 answer
930 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 ...
Brats's user avatar
  • 215
1 vote
1 answer
409 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.
Vygantas's user avatar
  • 373
4 votes
2 answers
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 ...
Mike's user avatar
  • 61
0 votes
1 answer
312 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' ...
itsk2015's user avatar
  • 167
2 votes
1 answer
157 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....
puzzle_fuzzle's user avatar
1 vote
1 answer
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 ...
Magento_Newbie's user avatar