• Hi all, Packlink intervene in the checkout process of woocommerce:

    “You have to enter your address first in order to search for Drop-Off location.”

    How we can deactivate this function?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi! Here’s the TEMPORARY fix I’ve been applying to my sites while the plugin author fixes this.

    The code only hides the content of woocommerce-info that contains the mentioned and exactly text “You have to enter your address first in order to search for Drop-Off location“, if there is another text, change it to that one.

    In your theme funtions.php, put:

    /**
     * Temporary solution to hide a specific WooCommerce info message added by the Packlink plugin on the checkout page.
     *
     * This function adds a script to the footer that uses jQuery to find and hide a specific
     * WooCommerce info message that is displayed by the Packlink plugin.
     * The message "You have to enter your address first in order to search for Drop-Off location" is targeted.
     * This helps improve the user experience by removing unnecessary or temporary messages.
     * 
     * Note: This is a temporary solution until the plugin author addresses the issue.
     */
    function hide_specific_woocommerce_info_on_checkout() {
        if ( function_exists( 'is_checkout' ) && is_checkout() ) {
            echo '<script>
                jQuery(document).ready(function($) {
                    $(".woocommerce-info:contains(\'You have to enter your address first in order to search for Drop-Off location.\')").hide();
                });
            </script>';
        }
    }
    add_action('wp_footer', 'hide_specific_woocommerce_info_on_checkout');
    

    Regards ??

    • This reply was modified 1 year, 6 months ago by Trademarkos.
    • This reply was modified 1 year, 6 months ago by Trademarkos. Reason: Info added and comment code

    I have the same problem. I didn’t know about that for weeks and noticed that when we faced a lower order rate!

    Jens

    (@jensbecher)

    which is included in the Global custom CSS

    .woocommerce-notices-wrapper .woocommerce-info {
        display: none;
    }

    i’ve got the same problem. tried @trademarkos snippet but doesn’t work for me. is there a fix for this?

    Hello,

    did you find a solution to this translation because I encounter the same problem? Thank you in advance for your help.

    Hi, I returned the @trademarkos code, it deletes the line, a solution while waiting for a response from the developer. Thank you @trademarkos for your troubleshooting solution.
    It surprises me that the developer is not more responsive like the translation that I must do after each update to “select the relay point” and “change the relay point”. A waste of time for everyone. THANKS

    • This reply was modified 1 year, 2 months ago by Hervé3183.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘You have to enter your address first in order to search for Drop-Off location’ is closed to new replies.