Zen Cart Observers ... They Work in the Admin, Too!


The Zen Cart Observer Class is a great tool for plugin developers, allowing a plugin to watch for ("observe") the occurrence of an event (a "notification") and provide additional processing without making modifications to Zen Cart core files.  What hasn't been stressed over the past years is that this notifier/observer interface also works in the Zen Cart admin panel!

It seems like every plugin (and its brother) need just a small update to /YOUR_ADMIN/orders.php, making the plugin installation (and Zen Cart upgrade) process just that more complex.  If plugin authors, myself included, would start adding a notifier at specific processing points in the popular (e.g. orders.php, customer.php) admin pages and providing observer code to insert their customizations, both the installation and upgrade processes would go much more smoothly.

Copyright © 2012-2024 Vinos de Frutas Tropicales. Powered by Zen Cart