403Webshell
Server IP : 162.0.217.223  /  Your IP : 216.73.216.150
Web Server : LiteSpeed
System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : mypckeys ( 1539)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mypckeys/public_html/wp-content/plugins/woocommerce-currency-switcher/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mypckeys/public_html/wp-content/plugins/woocommerce-currency-switcher/js/orders.js
"use strict";

function woocs_recalculate_all_orders_data() {
    if (confirm('Sure? This operation could not be rollback!!')) {
        jQuery('.woocs_recalculate_all_orders_curr_button').prop('href', 'javascript:void(0);');

        var data_count = {
            action: "woocs_all_order_ids"
        };
        jQuery('.woocs_ajax_preload').show();
        jQuery.post(ajaxurl, data_count, function (ids) {

            var orders = JSON.parse(ids);
            if (orders.length) {
                woocs_recalculate_all_orders_data_do(0, orders);
            }
        });

    }
}
function woocs_recalculate_all_orders_data_do(start, orders) {
    var count_orders = orders.length;
    var step = 10;
    var orders_ids = orders.slice(start, start + step);
    jQuery.ajax({
        method: "POST",
        url: ajaxurl,
        data: {
            action: 'woocs_recalculate_orders_data',
            order_ids: orders_ids
        },
        success: function (dat) {
            if ((start + step) > count_orders) {
                jQuery('.woocs_ajax_preload').hide();
                alert("Done!");
                window.location.reload();
            } else {
                woocs_recalculate_all_orders_data_do(start + step, orders)
            }
        },
        error: function () {
            alert("Something wrong!");
        }
    });

}



Youez - 2016 - github.com/yon3zu
LinuXploit