Hello @sevenseconds777,
Thank you for sharing the detailed information. Currently, in FluentBooking, you can only switch the number format between US style and EU style, and there is no built-in option to remove decimal places. However, there is a workaround that allows you to remove decimal places when events are embedded on a page using a shortcode. You can use the code snippet shown in the screenshot: [https://prnt.sc/woK439b3SZF1] and add it through a code-snippet plugin such as FluentSnippets.
Hopefully, this helps with your requirement.
Solution Code: https://github.com/RumanCodes/WPManage-Ninja/blob/master/fluent-booking/js-snippets/remove-decimal-points.js
Code Snippet Plugin: https://wordpress.org/plugins/easy-code-manager/
Best regards!
Ruman Ahmed.
syntax error, unexpected token “$”, expecting variable on line 1
Hello @sevenseconds777,
Thank you for your cooperation on this matter. It appears that you are using the PHP snippet option instead of the JS option. Please switch to the JS snippet option and paste the code as shown in the screenshot: https://prnt.sc/C0zAnmERCcsp
Hopefully, this might help you in this matter.
Best regards!
Ruman Ahmed.
-
This reply was modified 4 months, 3 weeks ago by
Ruman Ahmed.
Thank you.
However, the zeros after the decimal point did not disappear.
@algorithmsunlocks let’s make this as a feature of the plugin. That will be better.