display price as "starting from xx €"

Homepage Forums WP Travel display price as "starting from xx €"

This topic contains 5 replies, has 3 voices, and was last updated by  Support Team 1 year, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5998

    esmeraldaesk
    Participant

    Hello!
    Due to legislation in Germany our page needs to display the prices as “starting from xx €” (here for example http://urlaubgeorgien.de/itinerary/weintour/). Because for 6 people the price per person is lower (the lowest) as compared to an individual trip (most expensive). I was thinking to maybe solve this thru using Javascript, but this exceeds my knowledge a bit. Maybe you can help me out? Or give me a tip?

    Cheers! 🙂

    #6006

    Support Team
    Keymaster

    Hello @esmeraldaesk,

    To change the formatting of the price you have to activate the child theme.

    You can activate the child theme manually or simply using the plugin given below:

    https://wordpress.org/plugins/wp-child-theme-generator/

    After activating the child theme, in you child themes functions.php file paste below given code.

    https://gist.github.com/Steeru/0e2e0bf39ea56951e603e170b24bb26c

    Hope this helps.

    Best Regards!!

    #6041

    hello_k
    Participant

    Thank you esmeraldaesk and support! The above solution works for me.
    For those of us with other currency formats, how can we do the above but with the currency symbol in front of the amount?
    eg: “Starting from R—” or “Starting from $—”

    It exceeds my knowledge too :/

    #6046

    Support Team
    Keymaster

    Hello @hello_k,

    To display the currency symbol in front of the price then add below-given code in your child theme’s functions.php file replacing the one that is provided above.

    https://gist.github.com/Steeru/950ccf68cf6f32b8e66af2687d7f1625

    Hope this helps.

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

    Thank you.

    Best Regards!!

    #6054

    hello_k
    Participant

    Works perfectly – thank you!

    #6055

    Support Team
    Keymaster

    Hello @hello_k,

    Glad we could help you.

    Any further issues are always welcome.

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

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

    Thank you.

    Best Regards!!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.