currency after price

Homepage Forums WP Travel currency after price

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

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #7385

    bezPaliva
    Participant

    Hello!
    Tell me please how to make it work like in the screenshot and you need a ruble symbol?

    https://prnt.sc/k4eyts
    https://prnt.sc/k4ez84

    and I need to hide symbol “/” where “person”

    #7386

    Support Team
    Keymaster

    Hello @bezpaliva,

    First of all thank you very much for using the WP Travel plugin 🙂 .

    Now coming back to your query, to place the currency symbol after the price you need to activate the child theme and add below given code.

    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 creating the child theme in your child theme functions.php add below given code:

    https://gist.github.com/Tiiru/45c9758ad4fac587d97bc96f66a93355

    Now to remove the “/” symbol for now you need to directly edit your parent plugin file. For this please go to line no: 226 in wp-travel > inc > template-funstions.php. Now replace the existing code which is

    </ins>/<?php echo esc_html( $per_person_text ); ?>

    With the code given below:

    <?php if( ! empty( $per_person_text ) ) : ?>
          /<?php echo esc_html( $per_person_text ); ?>
    <?php endif; ?>

    Hope this helps.

    Let us know if you have any confusion further related to the WP Travel plugin.

    Thank you.

    Best Regards!!

    #7392

    bezPaliva
    Participant

    Thank you.
    I put the code like you said, that’s what I got
    https://prnt.sc/k4nz1y

    it is necessary that the usual price is the currency after the price.

    Thank you.

    #7393

    bezPaliva
    Participant

    and I need the price was “starting from” 999 “₽” – ruble symbol

    Thank you.

    #7400

    Support Team
    Keymaster

    Hello @bezpaliva,

    Please Replace the code that we have provided above with the code given below in your child theme’s functions.php file

    https://gist.github.com/Tiiru/732ba4dd92fb6aa4c88fc1e42b06e525

    Hope this helps.

    Regards!!

    #7404

    bezPaliva
    Participant

    Thank you so much!!!!

    #7406

    Support Team
    Keymaster

    Hello @bezpaliva,,

    It’s always a pleasure helping you guys 🙂 .

    If you have any confusions/queries further then please let us know.

    We would also 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 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.