Created
March 29, 2025 12:49
-
-
Save unlocomqx/54563ad60fbbe530d6939a72c164b03e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Attach module to hook | |
$this->registerHook('actionCartDuplicate'); | |
// Run custom logic when the hook is triggered | |
public function hookActionCartDuplicate($params) | |
{ | |
$id_cart_old = $params['oldCartId']; | |
$id_cart_new = $params['newCartId']; | |
// custom logic to duplicate data related to the old cart | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment