PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/eastfin/wp-content/plugins/woocommerce-dropshipping/assets/js/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/eastfin/wp-content/plugins/woocommerce-dropshipping/assets/js/myscript.js |
jQuery( "#input-dialog-date" ).datepicker({ dateFormat: 'yy-mm-dd' }); function open_dropshipper_dialog(my_id) { jQuery('#input-dialog-date').val(jQuery('#dropshipper_shipping_info_'+my_id+' .dropshipper_date').html()); jQuery('#input-dialog-trackingnumber').val(jQuery('#dropshipper_shipping_info_'+my_id+' .dropshipper_tracking_number').html()); jQuery('#input-dialog-shippingcompany').val(jQuery('#dropshipper_shipping_info_'+my_id+' .dropshipper_shipping_company').html()); jQuery('#input-dialog-notes').val(jQuery('#dropshipper_shipping_info_'+my_id+' .dropshipper_notes').html()); jQuery('#input-dialog-template').dialog({ title: 'Shipping Info', buttons: [{ text: 'Save', click: function() { js_save_dropshipper_shipping_info(my_id, { date: jQuery('#input-dialog-date').val(), tracking_number: jQuery('#input-dialog-trackingnumber').val(), shipping_company: jQuery('#input-dialog-shippingcompany').val(), notes: jQuery('#input-dialog-notes').val() }); jQuery( this ).dialog( "close" ); } }] }); } function js_save_dropshipper_shipping_info(my_order_id, my_info) { var data = { action: 'dropshipper_shipping_info_edited', id: my_order_id, info: my_info }; // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php jQuery.post(ajaxurl, data, function(response) { if(response == 'true'){ jQuery('#dropshipper_shipping_info_'+my_order_id+' .dropshipper_date').html(jQuery('#input-dialog-date').val()); jQuery('#dropshipper_shipping_info_'+my_order_id+' .dropshipper_tracking_number').html(jQuery('#input-dialog-trackingnumber').val()); jQuery('#dropshipper_shipping_info_'+my_order_id+' .dropshipper_shipping_company').html(jQuery('#input-dialog-shippingcompany').val()); jQuery('#dropshipper_shipping_info_'+my_order_id+' .dropshipper_notes').html(jQuery('#input-dialog-notes').val()); location.reload(); } }); } // Ajax callback for send aliexpress API key in admin mailbox jQuery(document).ready(function() { jQuery("#generate_ali_key").click(function () { var data = { 'action': 'email_ali_api_key', }; // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php jQuery.post(ajaxurl, data, function(response) { // Output the response which should be 'Hellow World' alert('Your Woo AliExpress API Key has been sent to your admin email id. Please check your inbox/spam folder!'); jQuery('#ali_api_key').html('Your Woo AliExpress API Key for '+document.location.hostname+' is: <b>'+ response+'</b>'); jQuery('#hide_key').show(); }); }); }); jQuery(document).ready(function() { jQuery(document).on('click', '.hidecbe', function() { var data = { 'action': 'hide_cbe_message', 'cbe_hideoption' : 'yes' }; // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php jQuery.post(ajaxurl, data, function(response) { // Output the response which should be 'Hellow World' // alert('Your Woo AliExpress API Key has been sent to your admin email id. Please check your inbox/spam folder!'); //jQuery('#ali_api_key').html('Your Woo AliExpress API Key for '+document.location.hostname+' is: <b>'+ response+'</b>'); jQuery('#cbe_message').hide(); }); }); }); // Ajax callback for Aliexpress related product open in diffrent tab /*jQuery(document).ready(function() { jQuery("#opmc_ali_place_order").click(function () { var order_id = jQuery('#order_id').val(); var $ = jQuery; var ajaxurl = jQuery("#opmc_ali_place_order").attr("url"); data = { action: 'get_order_data', id: order_id}; $.ajax({ url: ajaxurl, data:data, type: 'post', dataType: 'json', success: function(response) { for (var i = 0; i < response.length; i++) { window.open(response[i], '_blank'); } } }); }); });*/