• Resolved Ana Night

    (@ananight)


    Hi,

    I’m having some trouble with the plugin showing the restricted products in the search bar. I saw on another thread that the problem should’ve been fixed with the latest update but that was 3 days ago and it’s still showing for me?

    Also, the products restricted for my country aren’t showing on the backend either. They only show up when I use a VPN. Is that normal?

    The plugin works perfectly otherwise so I really hope this can be fixed!

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author kuldipzorem

    (@kuldipzorem)

    Hi @ananight,

    In our plugin, if you are using a VPN, the restrictions will apply based on the VPN’s country in your store.

    Thanks,
    Kuldip

    Thread Starter Ana Night

    (@ananight)

    Hi Kuldip,

    They apply when I’m NOT using a VPN?The search is also showing both products whether or not I use a VPN?

    Ana

    Plugin Author kuldipzorem

    (@kuldipzorem)

    Hi @ananight,

    Could you please share a link to the restricted product from your store?

    Thanks,
    Kuldip

    Thread Starter Ana Night

    (@ananight)

    Hi Kuldip,

    It’s on the backend that the restricted products aren’t showing unless I have a VPN on. It’s not my biggest concern. All the products showing in the search bar is. Will that be fixed?

    Ana

    Plugin Author kuldipzorem

    (@kuldipzorem)

    Hi,

    We have already fixed the issue with the search bar showing restricted products in the latest version. I just need to investigate this in your store. Could you please share the product link with us? So, I can help to resolve it.

    Thanks,
    Kuldip

    Thread Starter Ana Night

    (@ananight)

    Hi,

    My website is https://ananight.com

    Thanks,

    Ana

    Plugin Author kuldipzorem

    (@kuldipzorem)

    Hi @ananight,

    I investigated your store and noticed that you are using AWS search features. To address this, I have compatibility code for AWS. Please use the PHP code below and add it to the functions.php file in your store’s theme. After doing that, check the issue again and let me know how it works.

    add_filter( 'aws_search_data', 'exclude_products_from_search' );
    function exclude_products_from_search( $data ) {
    $fzpcr = new ZH_Product_Country_Restrictions();
    // Loop through the search data and exclude specified products
    foreach ( $data as $key => $item ) {
    if ( $fzpcr->restriction->is_restricted_by_id( $item['id'] ) ) {
    unset( $data[ $key ] );
    }
    }

    return $data;
    }

    Thanks,
    Kuldip

    Thread Starter Ana Night

    (@ananight)

    Hi Kuldip,

    I added it, but it still doesn’t work?

    Ana

    Plugin Author kuldipzorem

    (@kuldipzorem)

    Hi @ananight,

    Are you using any specific plugin or theme for the AWS search functionality in your store?

    Thanks,
    Kuldip

    Thread Starter Ana Night

    (@ananight)

    Hi Kuldip,

    Yes I’m using Advanced Woo Search by?ILLID

    Thanks,

    Ana

    Thread Starter Ana Night

    (@ananight)

    Hi Kuldip,

    It’s not working, so is there more code I need to add?

    Ana

    Plugin Author kuldipzorem

    (@kuldipzorem)

    Hi @ananight,

    I will investigate the issue of Advanced Woo Search in conjunction with our plugin and update you as soon as possible.

    Thanks,
    Kuldip

    Thread Starter Ana Night

    (@ananight)

    Sounds good. Thank you!

Viewing 13 replies - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.