Triggers / Ajax

(function(_, $) { $.ceEvent('on', 'ce.commoninit', function(context) { //... }); $.ceEvent('on', 'ce.ajaxdone', function(data){ //... }); $(document).ready(function(){ }); }(Tygh, Tygh.$)); $.ceAjax('request', fn_url('ajax.vatCheck'), { method: 'get', caching: false, hidden:true, result_ids: 'checkout*,account*', data: { 'countryCode':countryCode, 'vatNumber':vatNumber }, callback: function(data){ return data.valid; } });

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.