Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • @jannisbrandt

    Undo the previously suggested changes, if they are not working for you and try following instead:

    In this file “wp-content/plugins/dhl-for-woocommerce/includes/abstract-pr-dhl-wc-order.php” at line 298

    Change this:
    check_ajax_referer( 'create-dhl-label', 'pr_dhl_label_nonce' );
    With this:
    //check_ajax_referer( 'create-dhl-label', 'pr_dhl_label_nonce' );

    • This reply was modified 6 months, 3 weeks ago by Edris Ibrahim.

    Hi @psorn

    The Issue:
    We were facing the same issue, the issue was nonce was not verifying correctly resulting in error “Bad Request”

    The Fix:

    In this file “wp-content/plugins/dhl-for-woocommerce/assets/js/pr-dhl.js” on line 299

    Change this

            var data = {
                action:                   'wc_shipment_dhl_gen_label',
                order_id:                 woocommerce_admin_meta_boxes.post_id,
            };

    With this

            var data = {
                action:                   'wc_shipment_dhl_gen_label',
                order_id:                 woocommerce_admin_meta_boxes.post_id,
                pr_dhl_label_nonce:       $( '#pr_dhl_label_nonce' ).val()
            };
Viewing 2 replies - 1 through 2 (of 2 total)