
Building a Chat Module for PrestaShop: Hooks, Deferred Sending, and Combination Sync
I already had webhook sync modules for Drupal Commerce and Sylius . Each platform handles entity events differently. PrestaShop has its own approach: hooks, no message queue, and a combination system that doesn't map cleanly to variants. PrestaShop's Hook System PrestaShop uses hooks instead of event subscribers. For products, the key hooks are: public function install () { return parent :: install () && $this -> registerHook ( 'actionProductSave' ) && $this -> registerHook ( 'actionProductDelete' ) && $this -> registerHook ( 'actionUpdateQuantity' ) && $this -> registerHook ( 'actionObjectCombinationAddAfter' ) && $this -> registerHook ( 'actionObjectCombinationUpdateAfter' ) && $this -> registerHook ( 'actionObjectCombinationDeleteAfter' ) && $this -> registerHook ( 'actionObjectCmsAddAfter' ) && $this -> registerHook ( 'actionObjectCmsUpdateAfter' ) && $this -> registerHook ( 'actionObjectCmsDeleteAfter' ) && $this -> registerHook ( 'displayHeader' ) && $this -> registerHook ( 'acti
Continue reading on Dev.to Webdev
Opens in a new tab

