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 |
General questions about Magento 1 not specific to a minor version. You can use it to distinguish from Magento 2, but if you have issues with a specific installation, use the appropriate magento-1.x tag instead.
2
votes
1
answer
2k
views
Override Magento Class Community Code Pool
I need to add two methods in two separate Mage/core models. I'm trying to create my own methods in the local code pool, but without any success.
I'm sure the problem lies in my XML file (can't find a …
1
vote
1
answer
664
views
Jquery Plugin Undefined In Module
I'm trying to load a jQuery plugin, tinyCarousel, for use on the page. The jQuery library is included as follows in the layout.xml file:
<layout>
...
<default>
<reference name="head"> …
2
votes
Accepted
Jquery Plugin Undefined In Module
Solved!
This is embarrassing - the theme for magento already included jQuery. I found it riiiight at the top of the <head>. Thanks anyway.
3
votes
1
answer
2k
views
Magento Module Depends Throws Exception
I'm building an extension, following the official Magento developer's guide, here: http://info.magento.com/rs/magentocommerce/images/Magento-Extension-Developers-Guide-v1.0.pdf
In the app/etc/modules …
5
votes
2
answers
483
views
Set Magento Config Data For Script Duration Only
Is it possible to set a Magento configuration option for the duration of a single script only?
I'm trying to programatically and recursively create orders in Magento. I want to enable the Flat Rate S …
4
votes
2
answers
4k
views
Define Multiple Table Names In XML Config File
I am creating two database tables as part of a new extension. I can create one table just fine, but I get the following error message when I try to create two tables:
PDOException: SQLSTATE[42S01]: B …
2
votes
2
answers
8k
views
Select Product Where Price Is Greater Than Zero
Given the following code:
$mageProductCollection = Mage::getModel('catalog/product')
->getCollection()
->addAttributeToSelect('*')
…
4
votes
Is It Possible To Create My Own Shortcode
Given the popularity of this question, thought I'd add this; there's (obviously) a similar way to mimic this functionality. If the block type of core/template is used, we can access the data array usi …
3
votes
1
answer
9k
views
Add Javascript File To Head For Create Block
I need to create a block programatically (for various reasons):
$myblock = Mage::app()->getLayout()->createBlock('namespace_module/path', 'my_block', $params);
This works fine, but the controller a …
5
votes
2
answers
5k
views
Is It Possible To Create My Own Shortcode
I'm building a module. I want to be able to use a shortcode (template directive) in my CMS static blocks, such as the following:
{{store url=""}}
I want to call my own module's frontpage blocks usi …
2
votes
1
answer
4k
views
Check If JQuery Is Already Included In Head
I want to check if jQuery is already included on the page. I have seen several methods and finally settled on the following:
if ( (typeof jQuery === 'undefined') || !window.jQuery ) {
document.wr …