USD instead of $ for Pricing (WPTravel Pro – General Settings)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #27152
    k2l
    Participant

    Could you please check the feasibility of adding the below:

    USD instead of $ for Pricing
    https://prnt.sc/sxteh6

    #27203
    wensolutions
    Keymaster

    Hello @kochi2ladakhgmail-com,

    Yes, you can definitely do this through the custom code.

    For this, at first, you need to create and activate the child theme. To know how to create and activate the child theme, refer to below-given link:

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

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

    function customized_symbols( $symbols ) {
    		$symbols['USD'] = 'USD';
    		return $symbols;
    	}
    add_filter( 'wp_travel_currency_symbols', 'customized_symbols' );

    Hope this helps.

    Thank you and stay safe.

    #27222
    k2l
    Participant

    okay. And if the currency is INR then?

    Please also add this as a Pro feature in the Currency Settings.

    #27234
    wensolutions
    Keymaster

    Hello @kochi2ladakhgmail-com,

    For Indian currency, use below given block of code.

    function customized_symbols( $symbols ) {
    		$symbols['INR'] = 'INR';
    		return $symbols;
    	}
    add_filter( 'wp_travel_currency_symbols', 'customized_symbols' )

    Hope this helps.

    Thank you.

    #27273
    k2l
    Participant

    yes, thank you.

    But please add this in WP Travel Pro, since this is a commonly used feature.

    #27282
    wensolutions
    Keymaster

    Hello,

    Glad that we could help you.

    Also, regarding adding feature, we will see if this feature can be added.

    Further, we would really appreciate if you could help us by rating our plugin by following the link below:

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

    If you have any queries further, let us know.

    Thank you.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘WP Travel Pro’ is closed to new topics and replies.