zencart/documentation

notifiers: snake case not working with $zco_notifier->notify('ZEN_GET_PRODUCTS_BASE_PRICE'....

torvista opened this issue · 0 comments

I'm not sure of the correct technical explanation to be able to add to the text on the notifiers page, but I note that, for the above notifier, which is procedural, snake case does not work.

i.e. in a auto.observer

 $this->attach($this, [
            'ZEN_GET_PRODUCTS_BASE_PRICE', 
 ]);

This does not work:
protected function zen_get_products_base_price(&$class, $eventID, $p1, &$p2, &$p3)
This works:
protected function updateZenGetProductsBasePrice(&$class, $eventID, $p1, &$p2, &$p3)