How to use CS-Cart 4.x JavaScript triggers

CS-Cart JavaScript triggers can be found in js/tygh/core.js and can hellp you to add your own JavaScript functions.

For example:

$.ceEvent('trigger', 'ce.commoninit', [context]);

You can simply add new function by adding in you add-on JavaScript file

$.ceEvent('on', 'ce.formpre_payments_form_tab1', function(context) { ...YOUR JS CODE... });