Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #988734

    Hello,

    I want to change my current page to Enfold-theme, now i’m using the Entrada theme (which i won’t recommend – bigb problems with the support and wpml, css, etc…). In my current theme (entrada), the trips are managed within Woocommerce, and you can manage various travel features that can be used to find travel through a search function (see link).
    So my question is: Can i create the trips in Enfold with Woocommerce and is it possible to use a searchbox for the individual products?
    I really like to work with enfold by the way and want all of my pages to be based on enfold.

    Thanks in advance!
    Jan

    #989026

    Hey Jan,

    I think you should be able to do that with Enfold yes, are you adding the trips as basic WooCommerce products? If so I don’t think you should have any problems.

    Best regards,
    Rikard

    #989882

    Hey Rikard,

    thanks for your answer! I don’t know, what you mean with “basic WooCommerce products”. Now i use variable products, because i have more than one date and price for the same trips.

    Best regards,
    Jan

    #990568

    Hi,

    As far as I know you can use Relevanssi to enhance the product search ( https://www.relevanssi.com/user-manual/woocommerce/ ). You can also combine it with the ajax search function of enfold by adding this code to your child theme functions.php file:

    
    
    add_filter('avf_ajax_search_function', 'avia_init_relevanssi', 10, 4);
    function avia_init_relevanssi($function_name, $search_query, $search_parameters, $defaults)
    {
        $function_name = 'avia_relevanssi_search';
        return $function_name;
    }
    
    function avia_relevanssi_search($search_query, $search_parameters, $defaults)
    {
        global $query;
        $tempquery = $query;
        if(empty($tempquery)) $tempquery = new WP_Query();
    
        $tempquery->query_vars = $search_parameters;
        relevanssi_do_query($tempquery);
        $posts = $tempquery->posts;
    
        return $posts;
    }
    
    

    Best regards,
    Dude

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