- This topic has 9 replies, 3 voices, and was last updated 4 years, 4 months ago by
Support Team.
- AuthorPosts
- August 31, 2018 at 2:53 pm #7936
strifer
ParticipantHello guys,
I am trying to put the currency symbol after the value, to have it shown like this: “8 500 Kč” (the space between thousands would be a great nice-to-have).I have found an older inquiry on this topic, but the link of the code to put in links to a 404 page 🙁
Thank you so much!
A.
September 5, 2018 at 11:33 am #7979Support Team
KeymasterHello @strifer,
you can use the following code in your child theme’s functions.php file to get the currency amount in your requested format :
function wp_travel_customize_sale_price_display( $s, $c, $d ) { return sprintf( esc_html__('%1s %2s', 'wp-travel' ), $c , number_format( $d, 0, '.', ' ' ) ); } add_filter( 'wp_travel_itinerary_sale_price', 'wp_travel_customize_sale_price_display', 99, 3 ); function wp_travel_customize_price_display( $s, $c, $d ) { global $wp_travel_itinerary; if ( $wp_travel_itinerary && $wp_travel_itinerary->is_sale_enabled() ) { return sprintf( esc_html__('%1s %2s', 'wp-travel' ), $c , number_format( $d, 0, '.', ' ' ) ); // return $s; } return sprintf( esc_html__('%1s %2s', 'wp-travel' ), $c , number_format( $d, 0, '.', ' ' ) ); } add_filter( 'wp_travel_itinerary_price', 'wp_travel_customize_price_display', 99, 3 );
If you have any queries/issues further, please feel free to write back to us.
Best Regards !!
January 23, 2019 at 4:50 am #9677vdhmmo
ParticipantHello,
I have the same question. But seems like the code does’nt work anymore. Can you please check again?
I’m using
Plugin: WP Travel 1.7.9
Theme: Travel Log 1.2.3Your plugin still works perfectly.
Hope to hear from you soon. Thank you so much!January 23, 2019 at 5:00 am #9678vdhmmo
ParticipantBy the way, can you help me add thousand separator in price by “,”? For example: 10,890,000 đ
January 23, 2019 at 6:02 am #9679vdhmmo
ParticipantThe previous code I found in support forum about “Add comma between the trips price” and “Currency symbol position” almost only works on Trip Page, not affect on Cart Page and Checkout Page.
It would be great if the code was updated to not conflict each other.
Thanks again. I always support wptravel.
I’m considering to upgrade addons for my travel website.January 24, 2019 at 9:43 am #9791Support Team
KeymasterHello @vdhmmo,
First of all thank you very much for the appreciations and support. Hoping for the same love and support in the future as well.
Now regarding your query, please add below given code by going to your child themes’s functions.php file.
Hope this helps.
If you have any query further please let us know.
Thank you.
Regards!!
January 24, 2019 at 10:16 am #9793vdhmmo
ParticipantYes, it’s work great.
1. But can you please take a look at “Post Filter Section” => “Trip Types/Trip Locations”?
Screenshot: https://prnt.sc/mbgqgu2. I read about Multiple Trips function here: http://wptravel.io/documentations/wp-travel-utilities/multiple-trips-cart-checkout/configurations/
Is that works with Inventory Option? I mean, in single trip page, multiple trips with different fixed departure will show up on the booking tab. Customer just click on the trip they want and filling the booking form (skip cart enabled).
http://wptravel.io/documentations/wp-travel-utilities/inventory-option/inventory-option-for-particular-pricing/If it’s a custom feature that requires developer involvement, please quote me.
Thanks for your support.January 24, 2019 at 11:49 am #9804Support Team
KeymasterHello @vdhmmo,
Glad that the code worked.
As for the post filter section, to make the price appear with the comma and the currency symbol behind requires higher code customization.
So if you want then you can hire our professional developer so that you get what you want.
To hire a developer please refer to below given link:
http://wptravel.io/hire-wordpress-customizer/
Actually, it is multi checkout feature which is applicable for both single and multiple prices.
If you enable this feature then you can add as many no of trips as you can in the cart page. Once you book a trip then “View Cart ” option will appear on the single trip page. If you decide to book another trip again then you can go to that trip and book. Now both the trips will be on the cart page along with their prices.
This is feature will be only available through the use of WP Travel Utilities addon.
Link:
http://wptravel.io/downloads/wp-travel-utilities/
Doc link:
http://wptravel.io/documentations/wp-travel-utilities/multiple-trips-cart-checkout/
Hope this clears the confusion.
Best Regards!!
January 24, 2019 at 1:56 pm #9815vdhmmo
ParticipantI’ll try Utilities addon first.
Thanks again. Great support team!January 25, 2019 at 5:04 am #9839Support Team
KeymasterHello @vdhmmo,
Yes, please do try and let us if you find any confusion further.
Also, thank you very much for the appreciations :).
Further, we would really appreciate if you dropdown your valuable review for our plugin by following the link given below:
https://wordpress.org/support/plugin/wp-travel/reviews/
Thank you.
Regards!!
- AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.