For some time we offer to use custom function after (un)succesfull validation, see https://developers.shoptet.com/vlastni-script-pred-odeslanim-formulare/. To bring some “culture” between multiple addons/custom adjustments, we had recently improved the behavior – from now on is possible to set own function without overwriting previously set function. See example below and please update your scripts, if you are using these custom functions in your scripts.
shoptet.scripts.setCustomFunction(
'postSuccessfulValidation',
function(form, args) {
console.log('I am added "callback".');
console.log(form);
}
);
shoptet.scripts.setCustomFunction(
'postSuccessfulValidation',
function(form, args) {
console.log('I am another added "callback" and I don\'t overwrite the previous one.');
console.log(form);
}
);