HomePage Forums Search Search Results for 'rating criteria triply'

Viewing 7 results - 1 through 7 (of 7 total)
  • Author
    Search Results
  • #32902

    In reply to: Rating Criteria List

    This reply has been marked as private.
    #32849

    In reply to: Rating Criteria List

    Please add again:

    add_filter('babe_init_rating_criteria', 'triply_init_rating_criteria_filter', 10, 1);
    function triply_init_rating_criteria_filter(rating_criteria_arr){
        $rating_criteria_arr['location'] = esc_html__('Location', 'triply');
        $rating_criteria_arr['amenities'] = esc_html__('Amenities', 'triply');
        $rating_criteria_arr['services'] = esc_html__('Services', 'triply');
        $rating_criteria_arr['price'] = esc_html__('Price', 'triply');
        $rating_criteria_arr['rooms'] = esc_html__('Rooms', 'triply');
        return $rating_criteria_arr;
    }

    and remove this code: https://prnt.sc/ZjxkJMVnc9Qd

    #32685

    In reply to: Rating Criteria List

    Please add this custom code to the file functions.php ( child-theme):

    add_filter('babe_init_rating_criteria', 'triply_init_rating_criteria_filter', 10, 1);
    function triply_init_rating_criteria_filter(rating_criteria_arr){
    
                $rating_criteria_arr['location'] = esc_html__('Location', 'triply');
                $rating_criteria_arr['amenities'] = esc_html__('Amenities', 'triply');
                $rating_criteria_arr['services'] = esc_html__('Services', 'triply');
                $rating_criteria_arr['price'] = esc_html__('Price', 'triply');
                $rating_criteria_arr['rooms'] = esc_html__('Rooms', 'triply');
    
                return $rating_criteria_arr;
    }

    Change rating_criteria_arr by your key and name

    #30069
    lesmichels
    Participant

    1 – Rating Criterias

    As default, the rating criterias are LocationAmenitiesServicesPriceRooms

    We would like to have :
    1 – Services / Prestations
    2 – Guides / Guides
    3 – Visited Places / Lieux visités
    4 – Meal / Repas

    I read a post here https://pavothemes.com/forums/search/rating+criteria+triply/ and tried to change functions.php, but it doesn’t work, there is still a fifth criteria in the list.

    Also, I would need to translate these rating criterias so I’m not sure it’s OK to do so via functions.php.

    2 – Taxonomy translation

    We have 4 categories of trip : Adventure / Nature / Culture / Leisure that we want to have in both French and English.

    Here I have translated “Adventure”, which creates a link: https://senteursduvietnam.com/en/ba_thematiques/adventure/

    But when we click on the link, we are redirected to the homepage.

    This is the link of the french version : https://senteursduvietnam.com/ba_thematiques/aventure/

    As you can see, the flag for English does not appear, and we have the same issue with “Destinations”

    3 – Search form bug

    There is a bug with the search function.

    When I choose “Baie d’Halong” in the widget from the homepage (senteursduvietnam.com), I get only 2 results:

    Tous nos tours

    While there are way more tours:
    https://senteursduvietnam.com/ba_destinations/baie-dhalong/

    I checked the elementor widget and set the value to “-1” to display all, but it’s not working.

    4 – Other translations

    I want to translate “From” on pages where we can see lists of tours.

    But i don’t find it in locotranslate, neither in “theme” nor “BA Everything” plugin.

    Same thing for the blog : https://senteursduvietnam.com/blog/

    I can’t find where to translate “Blog Categories”

    Thank you for your help.

    #12356

    Hi you,

    Please use this code:

    add_action('after_setup_theme', 'triply_add_custom_code');
    function triply_add_custom_code(){
        add_filter('babe_init_rating_criteria', 'triply_babe_init_rating_criteria', 10, 1);
    
        function triply_babe_init_rating_criteria($rating_criteria_arr) {
            $rating_criteria_arr['location'] = esc_html__('Kids friendly', 'triply');
            $rating_criteria_arr['amenities'] = esc_html__('Friendly staff', 'triply');
            $rating_criteria_arr['services'] = esc_html__('Overall experience', 'triply');
    
            return $rating_criteria_arr;
        }
    }
    marjandbk
    Participant

    I would like to change rating criteria name. I have tried to add this code to functions.php but its not working:

    add_filter('babe_init_rating_criteria', 'trpiply_babe_init_rating_criteria', 10, 1);
    
    function trpiply_babe_init_rating_criteria($rating_criteria_arr) {
    	$rating_criteria_arr['location'] = esc_html__('Kids friendly', 'triply');
    	$rating_criteria_arr['amenities'] = esc_html__('Friendly staff', 'triply');
        $rating_criteria_arr['services'] = esc_html__('Overall experience', 'triply');
    
        return $rating_criteria_arr;
    }
    #8975

    Hi,

    You need to use php code to edit this issue:

    add_filter('babe_init_rating_criteria', 'triply_init_rating_criteria', 10, 1);
    
    function triply_init_rating_criteria($rating_criteria_arr){
       $rating_criteria_arr['services'] = esc_html__('Services', 'triply');
       $rating_criteria_arr['price'] = esc_html__('Price', 'triply');
       unset($rating_criteria_arr['rooms']);
       unset($rating_criteria_arr['location']);
       unset($rating_criteria_arr['amenities']);
    
        return $rating_criteria_arr;
    }
    }

    rename option: $rating_criteria_arr[‘services’] = “your-name”;

Viewing 7 results - 1 through 7 (of 7 total)