Forum Replies Created

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter fadipet

    (@fadipet)

    I found solution with Cloudflare. Thank you so much!

    Thread Starter fadipet

    (@fadipet)

    Thanks for your answer.
    I implemented my login redirect function with the piece of code you indicated to me in
    that way but…no luck!

    function wp_change_login_url ( $login_url, $redirect, $force_reauth ) {
    $request_actions = array( ‘add_export_personal_data_request’, ‘add_remove_personal_data_request’ );
    $current_action = filter_input( INPUT_POST, ‘action’ );

    if ( in_array( $current_action, $request_actions ) ) {
    return;
    }
    else {
    return get_permalink( wc_get_page_id( ‘myaccount’ ) );
    }
    }
    add_filter( ‘login_url’, ‘wp_change_login_url’, 10, 3);

    Is there something wrong? I’m not a developer, sorry!
    Thanks again.

    Thread Starter fadipet

    (@fadipet)

    Updating info on my issue:

    On some Chrome Android browsers it happens that, by connecting to my site in https mode, Woocommerce does not detect customer country (on checkout page “country” field is empty).
    I made a test purchase (as a guest, so in logged out mode) from my Android Chrome and noticed in the Woocommerce order section that it comes from an IP address owned by Siteground, my web host.
    So, why the real customer IP is not detected?
    The issue does not happen if I turn off https redirection and i connect to my site in http mode.
    Please help again,
    Thanks

    Thread Starter fadipet

    (@fadipet)

    Thankl to you!
    Anyway, I disabled Google Pay as payment method and the issue is the same. On Chrome Android on my smartphone, but not on Chrome Android of my friends, at checkout the “Country” field is empty. It doesn’t happen on my desktop (Chrome, Firefox, Explorer) and Geolocation works well. It also works well on my Firefox Android and CM Browser Android.
    The only issue is on my Chrome Android and I dont know why. I tried deleting cache and cookies many times but..no luck!
    If I put your plugin in Test Mode (France for example), my Chrome Android works well.
    If i disable Test mode and I open my site in incognito window on my Chrome Android, it works well.

    My htaccess settings to redirect www to not www and http to https are
    RewriteEngine on
    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTPS_HOST} ^www\. [NC]
    RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

    and if i delete this setting from htaccess my Chrome works well.

    My Woocommerce status about geolocation is

    HTTP_CF_IPCOUNTRY: X
    GEOIP_COUNTRY_CODE: X
    HTTP_X_COUNTRY_CODE: X
    HTTP_X_REAL_IP: 87.26.38.109
    HTTP_X_FORWARDED_FOR: X
    REMOTE_ADDR: 87.26.38.109
    Real external IP: 87.26.38.109

    Please help again

    Thread Starter fadipet

    (@fadipet)

    It works. Thanks a lot!

    Thread Starter fadipet

    (@fadipet)

    Thanks a lot. You are great!

    Thread Starter fadipet

    (@fadipet)

    Finally i found the solution. Copying both .po and .mo “giftable-for-woocommerce-de_DE” files from wp-content\plugins\giftable-for-woocommerce\languages and pasting in wp-content\languages\plugins folder (overwriting the existing files). The reason is that the 2 de_DE.po files are not perfectly equal to each other. The one in wp-content\languages\plugins folder misses some registered string to translate.
    I’m using Polylang.
    I hope to be useful also to other people.
    Bye

Viewing 7 replies - 16 through 22 (of 22 total)