Questions tagged [core]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

Magento 2 - Is it safe to change files in core via patch?

I often read that we should never change files in the core and I know that it is bad practice. However, there was a bug in my shop, so I reported it to magento customer support and they have sent me a ...
-1
votes
1answer
19 views

php default classes not working in magento

I trying to sort cart item by price private function getSortedItems($quote, $rule) { $items = $this->context->getMatchingItems($quote, $rule); $itemObject = new ArrayObject($items); ...
0
votes
1answer
77 views

How to override core files into custom module app/code?

I am added a custom attribute in my wishlist knockout core file, Code : https://codeshare.io/5ZlEv7 Line Number: 142 I want to override into my custom module, I am created a custom module, how to ...
2
votes
3answers
8k views

Magento2: How to override admin files

I need to add some modification on the following file so that i'm trying to overwrite the file in local vendor/magento/module-sales/view/adminhtml/templates/order/view/info.phtml to app/design/...
1
vote
0answers
26 views

Magento Category Navigation - Customising Topmenu.php, adding columns using "$colBrakes" + "shouldAddNewColumn"?

I am successfully customising the magento 2 navigation by extending 'vendor/magento/module-theme/Block/Html/Topmenu.php' (and also 'vendor/magento/module-theme/view/frontend/templates/html/topmenu....
0
votes
1answer
517 views

Magento 1 - How to update from 1.9.4.4 to 1.9.4.5

I'm very new to Magento 1 and I need to update from 1.9.4.4 to 1.9.4.5 on my staging system. How can I do that? I can't use composer or anything else. Thanks in Advance!
0
votes
1answer
109 views

How use preference for core widget block class?

How override core block class for core Catalog Category Link widget? I try: <preference for="Magento\Catalog\Block\Widget\Link" type="Vendor\ModuleName\Rewrites\Block\...
1
vote
0answers
78 views

\StoreResolverInterface->getCurrentStoreId() taking huge amount of time to resolve current store ID in StoreManager.php

Running Magento 2.3.4 and encountering an issue with Magento core code. For the past couple of days I've been battling terrible performance on my site, especially when serving uncached content via ...
1
vote
2answers
200 views

Magento 1.9 - What is the best way to edit core files?

I need to edit: app/design/adminhtml/default/default/template/sales/order/view/items.phtml editing core files is dangerous, may I know how can I edit without affect core files. eg: Some case we ...
0
votes
2answers
114 views

How to override productcollection.php from vendor?

I have to override the file ProductCollection.php from vendor/magento/module-catalog/Ui/DataProvider/Product. I have read many posts but still not getting to override the file. Can anyone please ...
1
vote
2answers
2k views

Magento 2.3: InvalidAgumentException: Composer could not find the config file

I have a problem with Magento, I use X-debug for trying to debug Magento and I have the following Exception: Exception Has ocurred. InvalidArgumentException: Composer could not find the config ...
0
votes
1answer
977 views

Tax miscalculation for partial creditmemo

We are working on a project for a customer that is running on Magento Community Edition 1.7.0.1. We have encountered the following issue: When we create a partial credit memo the recalculation of ...
0
votes
1answer
347 views

one-to-one relationships

I have a module where we are allowing partners to signup. there's a table called partner, and another table called partner_template, where I'm storing email templates for each partner. the business ...
1
vote
3answers
885 views

Paypal Controller Overriding/Extending not working

I have Magento 1.9 CE and I'm trying to create a new module for extend the class Mage_Paypal_Controller_Express_Abstract, but it doesn't work. Here's the code: Name_Module.xml in /app/etc/modules &...
1
vote
1answer
88 views

How to find a file that render html of a function?

How to find a file in Magento Core that render getPayementHtml() function (Admin Default Template)?
9
votes
4answers
9k views

Disable Core Extensions in Magento 1.x

we have a shop that sells physical configurable products. We use a custom payment provider (own extension) and our store is located in Europe. What core extension can we disable without nasty side ...
1
vote
1answer
143 views

Mage_Core_Exception: Invalid block type: Mage_Adminhtml_Block_Sales_Order_Totals_Subtotal

I am new in Magento and in Magento (Magento ver. 1.9.3.2), it show Exception of Invalid block type: Mage_Adminhtml_Block_Sales_Order_Totals_Subtotal(in exception.log) And reason of that Exception ...
113
votes
13answers
74k views

Magento core_url_rewrite table excessively large

I've noticed a large amount of reports that this table itself can become extremely cluttered, I'm running a site with ~5000 SKUs and ~250 categories (single-store) and a resultant core_url_rewrite ...
0
votes
0answers
112 views

Magento 2 getting error Source class "\Magento\Framework\Filter\Zend" for "Magento\Framework\Filter\ZendFactory" generation does not exist

I am getting this error on the checkout page Source class "\Magento\Framework\Filter\Zend" for "Magento\Framework\Filter\ZendFactory" generation does not exist. I deleted var folder I deleted ...
1
vote
0answers
309 views

Magento 1 EE 1.14.3.10 - Mage::getSingleton('core/resource')->getConnection('core_read') is returning null sometimes

We have Magento 1 EE 1.14.3.10. In the production, I tried to deploy some of the updates, took a code pull from GIT and cleared the cache. Since then it started throwing this error. No error if Amasty ...
0
votes
1answer
119 views

Magento 1.9 overwrite core

Is it possible to overwrite Magento core functionality in this way? - Mage_Sales_Block_Order_Total { protected function _initTotals(){ //this is core } } and overwrite it with this - ...
1
vote
4answers
641 views

Best way to Edit Default files & Apply Custom Application in Magento 2.3?

What are all the best way to edit core files in Magento 2.3. eg: magento 1.9 edit app/code/local or community instead of app/code/core. Note: What are all files I need to focus for Future Version ...
1
vote
1answer
148 views

How to customize my account module

I want to override the labels of form System -> My Account like User Name change to Customer Name. As well as i want to remove one field Last Name from that form.
5
votes
3answers
467 views

Confessions of a Core Modifier

A few pertinent questions here: What's the best way to identify core changes and work them into modules? Is there a free alternative to http://www.fontis.com.au/mageaudit/ ? How about subversion/...
0
votes
0answers
236 views

HEADERS ALREADY SENT

I keep getting HEADERS ALREADY SENT in my logfile (system.log). [6] /home/company/public_html/index.php:82 \</pre> 2018-09-17T10:49:23+00:00 DEBUG (7): HEADERS ALREADY SENT: \<pre>[0] /...
1
vote
1answer
101 views

Overwrite function of Magento Core Class without having to develope extension

I try to overwrite a function from a core class without having to create an extra extension for it. I need to overwrite the function _loginPostRedirect() from Mage_Customer_AccountController to ...
30
votes
3answers
25k views

where does is_salable come from?

Note: If you've been editing products by PHP code, then re-index them in the admin after, save your self hours trying to work out why they not showing like me below ... I am going round in circles ...
1
vote
1answer
3k views

add an observer when save in system->configuration

I need to add an observer in my module's config.xml file, the event is when the user press the button Save Config in System->Configuration->MyModule section of the Admin-panel. I've this in config.xml:...
3
votes
1answer
568 views

Incorrect inventory when saving a product as an order gets placed

I experienced the following behavior in Magento 1.7.0.2: Edit product Go to inventory tab View inventory In my test inventory on the product was sitting at 9 units. I place an order for the product ...
23
votes
1answer
719 views

How do I report Magento bugs and submit bugfixes so that they are likely to be closed?

I found a bug in Magento 1.x and I also found a bugfix for it. Where do I report it? Where do I have a chance that a Magento core developer has a look at it? The Magento bug tracker seems to be ...
3
votes
2answers
92 views

How to use Composer to update just the Magento 2 core packages?

I would like to use the composer update feature to update all the core packages, not the third-party packages together. Do you have some idea?
4
votes
2answers
2k views

Magento2 : Call getViewFileUrl() function in block file

How to call function getViewFileUrl() in block file? For phtml it is $this->getViewFileUrl('images/img.jpg') but it's not working on block file. what is syntax for block file which class I have ...
2
votes
2answers
507 views

Magento 2 core files

What folders/files are now considered core for Magento 2? As in "Don't edit these files since they can be overwritten in an update" I need to scan a site for core overrides and I'm looking for the ...
1
vote
1answer
155 views

Adding price field to magento attribute

I have added a custom field(price) to magento dropdown attribute(see image). I also added a new column to eav_attribute_option table and I can pull down the prices I have added manually. As I am new ...
1
vote
0answers
73 views

Magento 2 contributing tests to the new MFTF

I would like to know if it's possible to contribute tests to the new MFTF framework. In the documentation it talks about contributing to the MFTF core itself, but not how to contribute tests for it, ...
0
votes
2answers
112 views

Fall back from a core file

is it possible to use magento core files as fallback? Example: I really need to make a change in this file: app/code/core/Mage/Core/Controller/Varien/Action.php It will work if I create a copy at ...
5
votes
3answers
321 views

Fatal errors are coming after i run static-content:deploy with third party theme

I am facing some strange issues in Magento 2.1.3, i have configured third party theme and working fine, once i run setup:static-content:deploy, am getting fatal errors like i added below from core ...
9
votes
4answers
3k views

Magento 2 How to override vendor/magento/magento2-base/lib/web/css/source/lib/_navigation.less?

How Can I override vendor/magento/magento2-base/lib/web/css/source/lib/_navigation.less file in my custom theme ?
6
votes
1answer
897 views

CE 1.9.2.4 - Unreachable code in Core JavaScript files

On any category or product detail page that has a configurable product on it, I detect the following errors show up in the these files: /js/varien/configurable.js : unreachable code after return ...
7
votes
2answers
2k views

Speed Optimization by disabling Mage_Reports module?

When thinking about optimizing the speed of Magento, there are several possibilities like caching (PHP, Database, even Full Page Caches) to speed up your site. Another possibility is to reduce the ...
3
votes
3answers
3k views

Remove blank option from country dropdown list

To generate country drop down list Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect() method is responsible but generated drop down has blank entry at the top along with all other ...
0
votes
1answer
198 views

adminhtml config action location

I am trying to learn about creating modules by looking at the core code to see how the directory structure is formatted. I was looking at the Magento 1.9 sales module. In the adminhtml.xml file, The ...
2
votes
1answer
457 views

Rewrite Magento core files

I have a Magento 1.9.3.1 website in front of me right now in which the core files have been edited ( THEY HAVE COMMITTED A SIN!!! ). Anyway I have figured out which files they have edited and I am ...
2
votes
1answer
743 views

Transferring website from server to localhost using WAMP

I'm trying to transfer live website to me localhost. Steps I did: 1. Made folder in wamp/www 2. Copied FTP files there 3. Imported database 4. Changed core_config_data for unsucure/base url and ...
21
votes
4answers
2k views

Modern way of rewriting lib files

The problem is well known: lib classes are loaded exclusively through the autoloader, and we cannot change them other than: Copying them entirely to a codePool that is checked earlier than lib. ...
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 ...
0
votes
0answers
71 views

What does this code do for Paypal?

I am currently trying to create a module for Magento to show if the payment method used is Paypal Express via credit card or via Paypal account. Digging through the files I come accross app/code/core/...
3
votes
1answer
2k views

Magento 2:i18n folder to custom theme

I want to edit .csv file in module-wishlist to my custom theme. I have copied the the file from module-wishlist and copied to app/design/frontend/vendor/theme/Magento_Wishlist/i18n/en_US.csv. ...
0
votes
2answers
112 views

What are the reflects of core files changed? [closed]

I'm using different versions of the Magento 1.* and Magento 2.*, and I'd like to know how to explain to my clients what are the impacts of the core files changed. For example these bad points below, ...
3
votes
3answers
6k views

How to load the Magento 2 core (external file) [duplicate]

I'm creating a file outside of the public_html folder. In Magento 1.x I could access Magento Core functionality be doing this: require_once('./app/Mage.php'); Mage::app(); Does anybody know the ...