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 |
Magento Community version 1.9
0
votes
1
answer
128
views
Category collection retrieves wrong attribute values
$categories = Mage::getModel('catalog/category')->getCollection()
->addAttributeToSelect('*')
->addAttributeToFilter('level', 2) level
->addAttributeToFilter('is_active', 1 …
1
vote
Accepted
Category collection retrieves wrong attribute values
Ok, thanks to Raphael at Digital Pianism I checked the category in the backend again and realized the value was set in another store view. The shell script accessed another one than the magento block. …
0
votes
1
answer
3k
views
Catch exception in own extension controller
I created my own extension and within my own controller. Now I want to catch exceptions occuring in one of my actions and write it to my own log file. But try() catch does not seem to work. It just ou …
1
vote
0
answers
450
views
Get shipping tax rate
I have the following code to get the tax rate of a product
$store = Mage::app()->getStore();
$taxCalculation = Mage::getModel('tax/calculation');
$request = $taxCalculation->getRateRequest(null, null …
1
vote
0
answers
114
views
Dispatch admin_system_config_changed_section_XXX externally
Is it possible to dispatch the event admin_system_config_changed_section_XXX, for which I have an observer in my custom extension, from an external shell or PHP script?
0
votes
2
answers
3k
views
Product collection - Filter out child products where parent is disabled
My current code:
$collection = Mage::getModel('catalog/product')->getCollection();
$collection->setOrder('id', 'ASC');
$collection->addAttributeToSelect('*');
$collection->addAttributeToFilter('statu …
0
votes
Accepted
Product collection - Filter out child products where parent is disabled
Viveks answer brought me on the right track. The final solution is this:
$collection1 = Mage::getModel('catalog/product')->getCollection()
->addAttributeToSelect('id')
->addAttributeToFilter('status' …
0
votes
1
answer
795
views
How to fix "Direct use of $_SERVER Superglobal detected' in Magento 1
Using the $_SERVER super global in an extension causes the following guideline error
Direct use of $_SERVER Superglobal detected
I know the alternative for Magento 2 but how do you solve this for M …