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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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 answers only user 46249

Event/observer is used to work dynamically with Magento without altering the core code.

3
votes
In your Gist code this seems to be wrong nested... <global> <adminhtml> It should be ... <global> ... </global> <frontend> ... </frontend> <adminhtml> ... </adminhtml>
answered Jun 2 '17 by sv3n
1
vote
I guess there is a typo ... this <class>Mage_Customerupdate_observer</class> ... should match to ... <models> <Mage_Customerupdate> <!-- alias --> <class>Mage_Customerupdate_Model</cla …
answered Feb 2 '18 by sv3n
2
votes
This is no bad practice :) The problem is this piece of code $product->save();. The observer method is correct, but with this line catalog_product_save_after is triggered again, and again ... result …
answered Jun 12 '17 by sv3n
1
vote
You can use this in your observer: public function yourMethod(Varien_Event_Observer $observer) { $categoryId = ''; if ($category = Mage::registry('current_category')) { $categoryId = …
answered Jun 12 '17 by sv3n
2
votes
You can try these: sales_quote_item_set_product sales_quote_add_item sales_quote_product_add_after
answered Jun 20 '17 by sv3n
1
vote
Yes it is possible, but i'd prefer serveral (observer) methods as long it should not do exactly the same. <events> <event_one> <observers> <your_module_event_one> …
answered May 23 '17 by sv3n
2
votes
The code is correct. I guess logging is not enabled in Admin - System - Config - Developer - Debug You can force logging with setting 4th parameter in Mage::log() to true. Example: $controllerActio …
answered Jun 13 '17 by sv3n
2
votes
To store product data as JSON string you can use this: 1.) observe the event catalog_product_save_after 2.) create an observer with this code public function productDataToJson(Varien_Event_Observer …
answered Jul 8 '17 by sv3n
1
vote
The error pops up, because the class you try to use is not declared, so Magento "thinks" it's a part of code/core/Mage/. Try to change: <class>Schott_CurrencyDetector/observer</class> to <class>s …
answered Jul 25 '17 by sv3n
1
vote
checkout_cart_update_item_complete is dispatched in Mage_Checkout_CartController::updateItemOptionsAction() ... haven't testet it, but method description says: /** * Update product configuration for …
answered Mar 24 '18 by sv3n
1
vote
To set meta information on the fly (w/o save to product) you can use this ... It sets product name to meta title/keywords and description to meta description: app/code/local/Your/Module/etc/config …
answered May 28 '17 by sv3n
1
vote
The event exists, but this seems wrong ... <adminhtml> <models> <MyTest_Quote> <class>MyTest_Quote_Model_Observer</class> </MyTest_Quote> </models> ... Pleas …
answered May 30 '17 by sv3n
1
vote
To add category images change $collection = $tree->getCollection() ->addAttributeToSelect('description'); $tree->addCollectionData($collection, false, $parent); To: $collection = $tree->getCol …
answered Jun 8 '17 by sv3n
2
votes
It is fired after the save action, but before data is commited. sales_order_invoice_save_commit_after should do the job. In Mage_Core_Model_Abstract you can see whats the difference is between _save_ …
answered May 5 '17 by sv3n
0
votes
Guess this is an unfixed "bug" in Magento where image attribute isn't added to flat product tables. Fix: add <image> to app/code/core/Mage/Catalog/etc/config.xml To get full image URLs you can also …
answered Jul 10 '17 by sv3n

15 30 50 per page