Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
21
votes
Accepted
where does is_salable come from?
Here is an example from the core:
The method Mage_CatalogInventory_Model_Stock_Status::assignProduct() cals $product->setIsSalable()
Same goes for Mage_CatalogInventory_Model_Stock_Status::addStockStatusToProducts …
3
votes
Remove local core changes after testing
Make sure the original file App.php exists in app/code/core/Mage/Core/Model. Also if you have compilation enabled disabled it. …
4
votes
Accepted
Copy only functions from /app/code/core to local
If you take the 'file clone' approach you need to copy the entire file. But in the case you described there is no need to copy the file. You can rewrite the class in one of your modules and int that c …
0
votes
Accepted
Why is _designAttributes member private?
In Magento 2 the design attributes are not private anymore.
I can conclude that this was a slip-up or some inconsistency.
Not sure if I'm right, but since they were not kept private in M2 it means it …
1
vote
Assumed 'boolean' error in Config.php
The error seams to appear in the factory method getModelInstance (on line $obj = new $className($constructArguments);).
This means you are trying to instantiate a model and something is not right.
Unf …
0
votes
How to call a function from Mage_Payment_Model_Method_Abstract?
There are no static methods in that class and you cannot instantiate it either, because it's abstract.
But if you need to call a method from that class, either your approach is wrong or you already ha …
15
votes
Accepted
Disable Core Extensions in Magento 1.x
Create a file in app/etc/modules called Zzz.xml (so it loaded last) with this content
<?xml version="1.0"?>
<config>
<modules>
<Mage_Downloadable>
<active>false</active>
…
2
votes
Accepted
What is purpose of xmlconnect_notification_send_all cron job?
The Mage_XmlConnect module is used for managing and configuring the mobile application connected to your website (if you have one).
I'm not 100% sure but I think that cron is used to send push notific …
1
vote
Accepted
Is it safe to edit /js/mage/ files?
Never edit any file that is in the core.
This includes php classes, template classes, and js files.
What you can do is to "somehow" rewrite them. …
1
vote
Rewriting core/Mage/Catalog/controllers/Product/CompareController.php
I think the problem is your require_once statement. It does not include the correct file.
require_once(Mage::getModuleDir('controllers','Mage_Catalog').DS.'CompareController.php');
Will include the …
6
votes
Accepted
What's your take on using a custom helper in templates?
First of all, it's better to have custom helpers than to override core classes. … if (Mage::helper('core')->isModuleEnabled('MyNamespace_MyExtension')) {
Mage::helper('myextension')->doSomething($params);
}
This call makes use of the core helper. …
4
votes
getConfig function run time
There are small differences in parsing the config between the 2 but those should not affect performance. Both of the methods just go through a big array to retrieve data.
getConfig actually does some …
3
votes
Accepted
Where in the Core is Layout Update XML from the Admin applied?
For cms pages the layout is applied in Mage_Cms_Helper_Page::_renderPage().
For categories it happens in the view action of the Category controller
In both cases, the xml from the db is merged into …
0
votes
Magento 2, rerwite entire core module
You either disable completely the core newsletter module when installing Magento and build your own module based on the same functionality but with your own table schema and logic. … Or you can create a module that extends the core newsletter module. …
5
votes
Accepted
What is diffrence between OriginalPathInfo() and PathInfo()
getOriginalPathInfo will always return the URI that you called.
getPathInfo will return what is being processed internally by Magento, after looking through the url rewrites table
Let's take this exa …