Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking How to remove commas (separator) between Amenities in hotel Booking?
- This topic has 4 replies, 3 voices, and was last updated 2 years, 2 months ago by Pavel Lukáš.
- AuthorPosts
- January 12, 2022 at 10:17 am #1243458Janne LundinParticipant
How do I make the commas between amenities disepear, I use
hotel booking with Elementor Pro and Hello themeJanuary 18, 2022 at 4:37 am #1245783J. DavisKeymasterHi Janne,
You may follow this article to find a snippet to edit the delimiter within the amenities https://support.motopress.com/hc/en-us/articles/360037808151-How-to-edit-separators-delimiters-in-Hotel-Booking-plugin-
best regards,
J. DavisSeptember 9, 2022 at 11:38 pm #1351479Pavel LukášParticipantHello, I looked at the link but I can’t find the functions mentioned. I don’t know which functions.php file to find and where it is located. I also don’t know exactly how to replace it: “new separator here”. I need to remove the comma as thousands separator. It makes a problem when exporting to CSV where there are comma separators. Instead of 14,500 CZK, I have 14.5 CZK.
I have Hotel booking full.September 21, 2022 at 1:08 am #1356676J. DavisKeymasterHi Pavel,
You may try to add the code below to the functions.php file of your theme at /wp-content/themes/folder-of-your-theme/:
function theme_default_option_mphb_thousand_separator() { return ''; } add_filter( 'default_option_mphb_thousand_separator','theme_default_option_mphb_thousand_separator');
This will change the format of the price on the front-end. While your issue might be related to formatting of the document where you import the CSV file.
best regards,
J. DavisSeptember 21, 2022 at 3:18 am #1356718Pavel LukášParticipantHello, great thanks. It also works when exporting to CSV.
- AuthorPosts
- You must be logged in to reply to this topic.