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.
1
vote
2
answers
2k
views
Is it possible to handle success / error messages from within blocks?
In general, I handle exceptions and display success or error messages within controllers. For example:
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__("The cache s …
5
votes
Magento 1 - How to check if a product is new
For reference, here's the helper method that I came up with to check for newness. It supports both the Featured dropdown as well as the dates, and supports either date being empty as well.
public …
16
votes
6
answers
13k
views
Magento 1 - How to check if a product is new
From a quick search the only reference I found was on the Magento forums which is suggesting that you have to write some custom code to check if a product is new.
I would have thought there would be …
11
votes
5
answers
32k
views
Store code in URL for every store view except for default
I've enabled System > Config > Web > Add Store Code to URLs and I've setup a new Store View for Canada (/ca/).
I'd like to ideally have example.com/ca/ load the Canada Store View, but still have exam …
1
vote
1
answer
1k
views
How can you override Mage_Adminhtml_Controller_Action
Specifically I'm interested in potentially overriding _isAllowed() so that it defaults to false instead of true. Most of the things I've found related to overriding controllers deal with how to overr …
3
votes
Notice: Trying to get property of non-object
Set a breakpoint in there to see exactly which XML node it's choking on. My guess is that you may have broken the config with some bad XML in a custom module.
The place it's choking is:
public func …
3
votes
Getting a "Please Specify a Shipping Method" exception during checkout
Might have figured this out. I had a related exception that was being thrown with about the same frequency as this one, which was "The requested Payment Method is not available".
Turns out that th …
11
votes
Magento coding standards
I'd like to submit that we should be using the Magento 2 code sniff as a standard for both Magento 1.X and 2.X:
https://github.com/cobhimself/phpcs-magento-rules/blob/master/ruleset.xml
And here's es …
18
votes
4
answers
24k
views
Getting a "Please Specify a Shipping Method" exception during checkout
I've been getting exception logs for this error in production, but I'm unable to reproduce the issue in my local or staging environment, so it's been pretty hard to troubleshoot.
The error originates …
2
votes
2
answers
3k
views
How do you manage inventory for a grouped product?
Let's say that you sell tickets for an event, and you have the following constraints:
A max of 40 tickets can be sold for a given event slot
You have 5 different price tiers but you can accomodate d …
23
votes
4
answers
2k
views
Version Control for Module Development
I'm wondering whether there are any good conventions, as far as version control goes, for developing a module that you are using both in a single Magento instance and also are wanting to release as a …