Children and Infant Booking

Homepage Forums WP Travel Field Editor Children and Infant Booking

This topic contains 22 replies, has 5 voices, and was last updated by  wensolutions 1 month ago.

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #22907

    Hi,
    Could yu please advise if there is an update on the above mentioned issue about ‘Price starts from’ vlue?

    I have this issue where my trip shows the lowest price of children as the $ value for ‘price starts from’ , but I want to show that value as the lowest price of ‘adult’ not child. Can you please help?

    Thanks!
    Saurabh

    #22959

    Hi,
    I want to pick minimum price from ‘Adult pricing’ to show it as ‘price starts from’ . So, is there a way around? I really need this!

    regards,

    #22964

    wensolutions
    Keymaster

    Hello,

    As for now, it is not possible to pick minimum price from ‘Adult pricing’ if the price of child is minimum. However, we have noted the feature you have requested and will work on it as we have mentioned earlier.

    Also, if you want this feature immediately, we would like to suggest you to consider hiring a freelancer or our professional developer.

    To hire our professional developer, you can refer below given link:

    https://wptravel.io/hire-our-customizer/

    If you have any queries further, kindly let us know.

    Thank you.

    #22997

    Hi,

    I’m a professional developer. In the context of displaying the minimum Adult price on the UI, I installed the ‘WP File Manager’ plugin and can see ‘wp-travel’ and ‘wp-travel-pro’ plugin folders in there.

    1. Using browser developer tools, I figured out that the ‘From $price’ is coming from ‘wp-travel\inc\template-functions.php’ file. Is that correct??

    2. However when I try to modify that file, it throws an error saying ‘Unable to connect to backend. Http Error 406’. Can you please advise if this is the correct file and why does it throw that error.

    3. Or can you please guide me in the right direction if there’s another way to display the ‘From $price’ from Adult category only and not from all categories.

    Note:- I have modified a few other files of all extensions .php, .css etc to make some more UI changes on the website so I definitely have access to edit other files.

    Thanks in advance.

    #23036

    wensolutions
    Keymaster

    Hello,

    Actually ‘From $price’ has come from ‘wp-travel\inc\template-functions.php’ file through function ‘wp_travel_get_price’ which is located at helpers-price.php file. So, if you want to modify the price as per your requirement, you can use filter available in helpers-price.php file.

    screenshot: http://prntscr.com/qq72ab

    Please make sure that the changes should be made in child theme.

    Hope this helps.

    If you have any queries further, let us know.

    Thank you.

    #23083

    Hi,

    I have created a child theme.

    1. To modify the following Plugin files in child theme, what would be the folder structure?
    wp-content\plugins\wp-travel\inc\template-functions.php
    wp-content\plugins\wp-travel\inc\helpers\helper-price.php

    2. I have tried the following and it does not work.
    wp-content\themes\MYTHEME\wp-travel\inc\template-functions.php
    wp-content\themes\MYTHEME\wp-travel\inc\helpers\helper-price.php

    #23087

    wensolutions
    Keymaster

    Hello,

    Actually, to modify the content, you have to define the function and use the filter available in helpers-price.php file in functions.php file of your child theme.

    Also, as you have mentioned earlier that you are a professional developer, we thought it is not necessary to explain the way to use the filter.

    Regards.

Viewing 7 posts - 16 through 22 (of 22 total)

You must be logged in to reply to this topic.