Problem with Update

Homepage Forums WP Travel Problem with Update

This topic contains 18 replies, has 4 voices, and was last updated by  Support Team 11 months, 1 week ago.

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #3932

    genb84
    Participant

    Every time the plugin is updated, I lose all of the edits I made to the plugin, causing me to have to go back to my file manager and make the changes all over again.

    Is there a way around this?

    I’d like the trip price to be “Per Night” as that is how many U.S. hotels charge.

    Additionally, since I live in the U.S., I would like to make the default country “Unites States” instead of Afghanistan.

    Lastly, on the tabs, I’d like to update what they say. I don’t want “Trip Outline” for example. I prefer to have “Accommodation Details”. Is there way to fix this without having to constantly change it every time an update is released?

    Please advise.

    #3939

    Support Team
    Keymaster

    Hello @genb84,

    First of all, let us make you clear that if you make any modification directly in your original plugin file then all of your modification will be lost upon update to the latest versions and us have also been encouraging you to use the child theme for any code customization.

    Even now we strongly recommended you to use the child theme to make any modification to the plugin file so that your original plugin file will not be affected and you can update to the latest versions without the fear of losing the modifications.

    Now answers to your query are mentioned below:

    Additionally, since I live in the U.S., I would like to make the default country “Unites States” instead of Afghanistan.

    To change the default country in the booking form you have to paste below-given code in your child theme functions.php file.

    You can even create the child theme using the plugin given below.
    https://wordpress.org/plugins/wp-child-theme-generator/

    After activating the child theme in your child theme functions.php file paste below given code:

    https://gist.github.com/anonymous/3244a2626a4d62067ec4f690a6f73b9a

    Lastly, on the tabs, I’d like to update what they say. I don’t want “Trip Outline” for example. I prefer to have “Accommodation Details”. Is there way to fix this without having to constantly change it every time an update is released?

    To change the Trip Outline to Accommodation Details paste below given code in your child theme functions.php file.

    https://gist.github.com/anonymous/553f2455f940f6e81c05c3140cacd592

    Hope this helps.

    Also, we are soon releasing the update adding the feature where you will be able to change the text of the tabs from the Admin Dashboard.

    Best Regards!!

    #4035

    genb84
    Participant

    Hello. Thank you for the information. I appreciate all your hard work and really love this plugin.

    I do already have a child theme installed on my website but I do not know how to make modifications to a plugin using a child theme since the themes folder and plugins folder are both in wp-content. I tried to research this but was unable to find an answer on how this can be done.

    I did exactly what you instructed. I pasted the code in my child theme in the functions folder but received an error and had to delete the code in order to fix my website.

    Lastly, I’d like the trip price to be “Per Night” instead of per person or per group.

    Thanks, again!

    • This reply was modified 1 year, 5 months ago by  genb84.
    #4064

    Support Team
    Keymaster

    Hello @genb84,

    The plugin has already been release adding the feature to edit the text of the tabs that are displayed on the frontend. For this, you simply need to go to Tabs section of the trips and edit the text.
    Screenshot:

    https://image.prntscr.com/image/-V2kMNgaQvqhZpFTtdiQGg.png

    Also please remove the code that we have provided for this option as it will create the conflict with latest release.

    Now to change the default country in the booking form paste below given code.

    https://gist.github.com/anonymous/d763dbd39ea993184afcaeb2461c44e3

    Finally, to change the trip price to be “Per Night” instead of per person or per group paste below-given code in your child theme functions.php.

    https://gist.github.com/anonymous/bc018042c8d20e8f18d6e2b8144e36cd

    This will add the option Night in field “Price per” of Tabs section. So you can simply choose the option your choice.

    Hope this helps.

    Best Regards!!

    #4071

    genb84
    Participant

    Thank you for this information. I have installed a plugin called Ajax Custom CSS plugin. Can I paste the code into the JS area of this plugin?

    Otherwise, I do not know where to paste the code you provided. Because as I mentioned before, when I placed the code you provided previously into the functions.php folder for the child theme, I received an error.

    https://wordpress.org/plugins/ajax-awesome-css/

    • This reply was modified 1 year, 5 months ago by  genb84.
    #4074

    Support Team
    Keymaster

    Hello @genb84,

    As mentioned in the earlier replies, please paste the above-given code into your child theme functions.php file.

    If you directly made the modification in your original plugin file then all of the modification will be lost upon updating the plugin so please use a child theme for any modification in the plugin.

    Hope this helps.

    Best Regards!!

    #4076

    genb84
    Participant

    As I mentioned earlier, I have a child theme installed on my website but I do not know how to make modifications to a plugin using a child theme since the themes folder and plugins folder are both in wp-content. I tried to research this but was unable to find an answer on how this can be done.

    I did exactly what you instructed. I pasted the code in my child theme in the functions.php folder but received an error and had to delete the code in order to fix my website.

    How can I modify a plugin using a child theme? Both folders are located in wp-content.

    • This reply was modified 1 year, 5 months ago by  genb84.
    #4079

    genb84
    Participant

    Here is the screen shot of the functions.php folder in my child theme.

    https://prnt.sc/i3tpo9

    #4083

    Support Team
    Keymaster

    Hello @genb84,

    Please paste the code that we have provided just above the PHP quote “?>” that is seen in your screenshot.

    If it generates an issue please paste the issue to inspect further.

    Thank you 🙂 .

    Best Regards!!

    #4091

    genb84
    Participant

    Thank you so much! It worked! 🙂

    #4096

    Support Team
    Keymaster

    Hello @genb84,

    Nice to know that your issue is resolved.

    Any further issues are always welcome.

    Best Regards!!

    #5726

    fzhmango
    Participant

    Hi,

    I’m trying to change the default country to Australia using “AU” for my child theme functions.php but the country is still defaulting to Afghanistan. What am I doing wrong here? Can you please help. Below is the screenshot of my functions.php file from my child theme:

    child theme functions.php

    I just noticed the screenshot is missing the last line which functions.php has.

    add_action( ‘wp_footer’, ‘wp_travel_customize_default_country_setting’, 20 );

    • This reply was modified 1 year, 3 months ago by  fzhmango.
    #5740

    Support Team
    Keymaster

    Hello @fzhmango ,

    The code you have pasted in the child theme doesn’t work in the recent version of wp travel plugin.

    So please replace the code in your child theme with the code given below:

    https://gist.github.com/Steeru/4e7731683c62aa1c5b493504d40354b6

    Hope this helps.

    Best Regards!!

    #5741

    fzhmango
    Participant

    Thanks heaps!!! It works now. Also it would be good to have this in the settings for your future releases.

    • This reply was modified 1 year, 3 months ago by  fzhmango.
    #5743

    Support Team
    Keymaster

    Hello @fzhmango ,

    Glad we could help you.

    If you have any issue further, please let us know.

    We would also really appreciate if you could help us by rating our plugin by following the link below.

    https://wordpress.org/support/plugin/wp-travel/reviews/

    Hope this helps.

    Best Regards!!

Viewing 15 posts - 1 through 15 (of 19 total)

You must be logged in to reply to this topic.