• Resolved kokoska

    (@kokoska)


    Hi, we use WooCommerce and the original plugin from Woo “restricted Countries”. So we have product shown only in different countries. Problem is, in the search tool appear all products. The support from Woo likes to know which hooks you use for searching, so that they can modify the “restricted countries” Plugin. Thank you…urgent..I know ??

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

Viewing 1 replies (of 1 total)
  • Plugin Support Kris

    (@c0nst)

    Hi @kokoska!

    Unfortunately, we currently do not have integration with this plugin. For now, we do not plan to add such integration unless more people request it.

    Here is a filter that allows you to modify products:

    add_filter( 'dgwt/wcas/search_results/products_raw', function ( $products ) {
        return $products;
    } );

    Here is a filter that allows you to modify arguments in WP_Query:

    add_filter( 'dgwt/wcas/search_query/args', function ( $args ) {
        return $args;
    } );

    Regards,
    Kris

Viewing 1 replies (of 1 total)
  • The topic ‘Woocomerce and restricted countries’ is closed to new replies.