Skip to main content
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
Results tagged with
Search options not deleted user 33627

Questions about developing custom modules

4 votes
3 answers
4k views

Where to declare a magento registry value

In the custom module, I only have the config.xml file and the Observer.php. Where do I put the Mage::registry('check_sales_order_before', false); code? … I'm assuming I add another file somewhere in my module, or place it in a central file somewhere. Any ideas? Thank you. …
Shaun's user avatar
  • 103
3 votes

Where to declare a magento registry value

Been looking at this code for too long, but just realised the most obvious way to do it, is to put it in a constructor method at the top of the observer file: public function __construct() { …
Shaun's user avatar
  • 103