Change 'pax' wording to 'People'

Homepage Forums WP Travel Change 'pax' wording to 'People'

Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #7691
    PaulGrant
    Participant

    Hi there,

    I would like to know how to change the word ‘pax’ to ‘people’

    #7694
    Support Team
    Keymaster

    Hello @paulgrant,

    Thank you very much for using the WP Travel plugin.

    Not to change the “Pax to “People” you have to activate the child theme. To know how to create and activate the child theme please refer to below given link:

    http://wptravel.io/how-to-create-a-child-theme/

    After activating the child theme in your child theme functions.php add below given code.

    function wp_travel_customize_travel_info_section (){
    
    return __( '%d People', 'wp-travel' );
    
    }
    add_filter ('wp_travel_template_group_size_text','wp_travel_customize_travel_info_section');

    Hope this helps.

    Regards!!

    #7697
    PaulGrant
    Participant

    Thanks, this worked only for one area. It did not work for the Pricing Options

    Pricing Options

    #7700
    Support Team
    Keymaster

    Hello @paulgrant,

    To rename the “pax” displayed in the pricing option you have to use the child theme.

    Ate first in your child theme create the folder “wp-travel” and inside the folder create the file “content-pricing-options.php” .

    After creating the file add below given code in inside “content-pricing-options.php” file.

    https://pastebin.com/xMTWX5HM

    Hope this helps.

    Regards!!

    #7720
    privatejeep
    Participant

    Well this code here has errors!!! Sorry but we should not have to do code errors to change PAX to another term. This need to be an option inside the settings of this plug-in to begin with. Add this please.
    https://pastebin.com/xMTWX5HM

    #7726
    Support Team
    Keymaster

    Hello @privatejeep,

    Thank you very much for the help.

    Also, the thing is, we will only provide the code after checking them locally on our setting and when we checked the code that we provided it is working absolutely fine.

    Anyways thank you very much for the effort.

    Further, if you have any issues further please let us know.

    Thank you.

    Best Regards!!

    #24750
    graphxks
    Participant

    So this still seems to be something that can’t easily be changed, despite no one in the general public knowing what PAX means. It looks like content-pricing-options.php has been completely rewritten and the above no longer functions. How do we change PAX to PEOPLE or something else globally?

    Thank you.

    • This reply was modified 3 months, 2 weeks ago by graphxks.
    #24755
    Support Team
    Keymaster

    Hello @graphxks,

    To change the “Pax to “People” you have to activate the child theme. To know how to create and activate the child theme please refer to below given link:

    http://wptravel.io/how-to-create-a-child-theme/

    After activating the child theme in your child theme functions.php add below given code.

    function wp_travel_customize_travel_info_section (){
    
    return __( '%d People', 'wp-travel' );
    
    }
    add_filter ('wp_travel_template_group_size_text','wp_travel_customize_travel_info_section');

    Above code will change pax to people in the section shown in the screenshot below:

    https://prnt.sc/rizg36

    Also add the following code:

    function wp_travel_customize_text($localized_strings){
    	$localized_strings['bookings'] ['pax'] = 'People';
    	return $localized_strings;
      }
      add_filter( 'wp_travel_strings', 'wp_travel_customize_text');

    Above code will change pax to people in the section shown in the screenshot below:

    https://prnt.sc/rizhj7

    To change pax to pax in https://prnt.sc/rizidh section, we will manage this section in the coming update.

    Hoping for your kind cooperation.

    Regards!!

    #24759
    graphxks
    Participant

    Thank you for your quick response. That code worked very well.

    On the Booking tab, under Pricing, the selector box says “Select Pax”. How can this be changed?

    #24775
    Support Team
    Keymaster

    Hello,

    Regarding your query, the selector box has “Select Pax” which will be changed in the next update as we mentioned earlier. We will soon release the update fixing the issue.

    Hoping for your kind co-operation.

    Regards.

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