Forum Replies Created

Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Support normandy88

    (@normandy88)

    Hi,

    Glad to hear it 👍 Thanks again for taking the time to test and report both issues — really appreciated.

    If you spot anything else, just let me know.

    Cheers!

    Plugin Support normandy88

    (@normandy88)

    Hi,

    Good catch — confirmed and fixed in 2.2.2 (pushed to WordPress.org, available within 24 hours).

    You were right that the rozsah radio change wasn’t pre-filling things. There were actually two bugs behind your symptom:

    1. The bigger one: the AJAX submit was hand-building its request payload and never forwarded produkty_items[], so even when checkboxes were ticked, the server got an empty $_POST['produkty_items'] and fell back to the empty textarea → validation rejected it. The form now uses $form.serialize() so every field (including checkboxes) is sent automatically. Client-side validation also accepts either source.
    2. The one you spotted: when the form falls back to the plain textarea (e.g. logged-in user with no past orders), the textarea is now pre-filled from data-items also on the rozsah radio-change, not only on the order-change. Previously, toggling the radio after picking the order left the textarea empty.

    Please let me know after the update if everything works on your end. Thanks again

    Plugin Support normandy88

    (@normandy88)

    Hi,

    Thanks again for reporting this 🙏

    It’s fixed in version 2.2.1 — I’ve just pushed it to WordPress.org. It should be available within 24 hours (once it propagates through the plugin review and CDN).

    After the update, the e-mails will be sent correctly from the AJAX submit handlers as well. If you get a chance to test it again, please let me know whether everything works as expected

    Try this to take into functions.php in child theme if you use this is turn off a script allover but not in cart and checkout

    function odstranit_gls_plugin_vystupy() {
    // Skontroluje, či nie sme na stránke košíka alebo pokladne
    if ( !is_cart() && !is_checkout() ) {
    // Odstráni GLS skripty a mapu z frontendu mimo košíka a pokladne
    remove_action(‘wp_enqueue_scripts’, array(‘GLS_Shipping_Assets’, ‘load_scripts’));
    remove_action(‘wp_footer’, array(‘GLS_Shipping_Assets’, ‘footer_map’));
    }
    }
    add_action(‘wp’, ‘odstranit_gls_plugin_vystupy’, 20);

    or

    // Zruší GLS Shipping skripty na všetkých stránkach okrem košíka a pokladne
    function odstranit_gls_plugin_vystupy() {
    // Skontroluje, či sme na košíku alebo pokladni
    if ( is_cart() || is_checkout() ) {
    return; // Na týchto stránkach GLS necháme bežať
    }

    // Odstráni GLS skripty a mapu z frontendu
    remove_action('wp_enqueue_scripts', array('GLS_Shipping_Assets', 'load_scripts'));
    remove_action('wp_footer', array('GLS_Shipping_Assets', 'footer_map'));

    }
    add_action(‘wp’, ‘odstranit_gls_plugin_vystupy’, 20);

    • This reply was modified 11 months, 2 weeks ago by normandy88.

    Try this to take into functions.php in child theme if you use

    // Zruší GLS Shipping skripty

    function odstranit_gls_plugin_vystupy() {

        // Odstráni GLS skripty a mapu z frontendu

        remove_action(‘wp_enqueue_scripts’, array(‘GLS_Shipping_Assets’, ‘load_scripts’));

        remove_action(‘wp_footer’, array(‘GLS_Shipping_Assets’, ‘footer_map’));

    }

    add_action(‘init’, ‘odstranit_gls_plugin_vystupy’, 20);

Viewing 5 replies - 16 through 20 (of 20 total)