Note, too, that the example should be updated to show the use of the __construct function (that's going to be needed for PHP 7.0 compliance), e.g. changing references like:
toCode:<?php class myObserver extends base { function myObserver() { $this->attach($this, array('NOTIFIER_CART_ADD_CART_END')); } ... }
Code:<?php class myObserver extends base { function __construct() { $this->attach($this, array('NOTIFIER_CART_ADD_CART_END')); } ... }


Reply With Quote
