I'm getting confused about the configuration of my config.xml file.
I tried following this example at the bottom of the page https://wiki.magento.com/display/m1wiki/Using+the+Event-Observer+Method+in+Magento+1.x
with this result:
<events>
<catalog_product_save_before>
<observers>
<Pfay_Vert_observer>
<type>singleton</type>
<class>Pfay_Vert_Model_Observer</class>
<method>databaseOverlayUpdater</method>
</Pfay_Vert_observer>
</observers>
</catalog_product_save_before>
</events>
My module is called Vert and my namespace Pfay.
My Observer.php looks like this:
class Pfay_Vert_Model_Observer
{
public function databaseOverlayUpdater($event)
{
$data= $event->getData();
//scripts
}
}
<global>tag ? and where are you testing this ? adminpanel ? some other place? - Rabea<global>tag, I'm testing this by adding and removing products in the database(I have a front end page to do that). The script itself has a fwrite on txt file to confirm if it is running or not. Maybe I'm messing up the activation method? - Javis Ulrick