Skip to content

Commit

Permalink
Merge pull request #614 from Hlavtox/900-presenters
Browse files Browse the repository at this point in the history
Add presenter hooks
  • Loading branch information
nicosomb committed Aug 17, 2023
2 parents c486059 + d5505f3 commit 014ac06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions upgrade/sql/9.0.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ SET NAMES 'utf8mb4';

INSERT IGNORE INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES
(NULL, 'actionUpdateCartAddress', 'Triggers after changing address on the cart', 'This hook is called after address is changed on the cart', '1'),
(NULL, 'actionPresentCategory', 'Category Presenter', 'This hook is called before a category is presented', '1'),
(NULL, 'actionPresentStore', 'Store Presenter', 'This hook is called before a store is presented', '1'),
(NULL, 'actionPresentSupplier', 'Supplier Presenter', 'This hook is called before a supplier is presented', '1'),
(NULL, 'actionPresentManufacturer', 'Manufacturer Presenter', 'This hook is called before a manufacturer is presented', '1'),
(NULL, 'actionCartGetPackageShippingCost', 'After getting package shipping cost value', 'This hook is called in order to allow to modify package shipping cost', '1');

ALTER TABLE `PREFIX_feature_flag` ADD `type` VARCHAR(64) DEFAULT 'env,dotenv,db' NOT NULL AFTER `name`;
Expand Down

0 comments on commit 014ac06

Please sign in to comment.