Running any number through the function woocommerce_price() will format that number with the number of decimals, thousands separator, currency symbol and currency location chosen in the admin.
Add the function to your code snippet should format the price correctly:
<?php if ( $price_html = $product->get_price_including_tax() ): ?>
<span class="price"><?php echo woocommerce_price($price_html); ?></span>
Related Posts:
- Creating a plugin with dependencies
- Are WordPress Plugins essential?
- difference between add_options and register_setting
- Is it possible to stop selected plugins from loading on certain template pages?
- wordpress function to change post status [duplicate]
- Creating a WordPress admin page without a menu for a plugin
- Secure WordPress paid plugin
- Overriding single plugin translation
- Common functionality between my own plugins
- Filter Orders in Admin area, based on Custom meta
- What happens when wp_cron is deactivated in WordPress?
- How can I install a plugin on a WordPress.com hosted blog?
- What are some examples of well-written plugins that exemplify wordpress plugin best practices? [closed]
- How To Ignore a Filter On Applying Filter the Content In a Function
- Which functions in theme or plugin load first
- Adding Image in readme.txt file of wordpress plugin
- Saving Plugin settings to the database
- Add CSS animation as Preloader to WordPress
- Plugin uninstall: why run dbDelta after $wpdb->query($drop_sql)
- Plugin to restrict login and unpublish content from an author
- How to use wp-ajax in wp-cron
- remove custom taxonomy metabox form custom post type
- $wpdb->get_results() does not fetch results with unicode ‘WHERE’ clause
- Calling shortcode in wp_localize_script strips result
- How to get list of Scripts in Order of Dependencies
- Is it possible to make shortcodes NOT case sensitive?
- Overriding a function in wordpress
- Woocommerce “out of stock” message [closed]
- Travel Blog Plugins
- How can I call plugin function from a custom template?
- plugin suggestion for barcode
- Adding with javascript to admin bar. Works in Chrome/Safari, not Firefox
- What plugins are in use on wordpress.com [closed]
- Woocommerce custom shared taxonomy
- WordPress plugin installation
- Get image URL from media library in input
- How to remove the whitespace in image name and save the new file
- What is the best way to move a plugin´s subdirectory+files to wp-content/uploads-directory?
- WordPress custom URL Rewrites redirecting not masking
- How could I execute my plugin just in frontend (not in backend)
- Multiple Instances sharing the same database in a development environment
- Geo Targeting articles on a WordPress site [closed]
- Custom height/width for thickbox in WP Backend
- add action wp_head not working
- Can I upgrade plugins via FTP?
- get_option compatible with wordpress network (multisite)?
- Create a plugin with Calendar picker
- Cannot access wp-admin after disabling all plugin
- Assignments must be the first block of code on a line Validation Error on Travis
- What is Stable Tag in WordPress plugin readme file
- Error 404 using wpml plugin
- I’m trying to update user meta but is always 1, What I doing wrong? [closed]
- Next and/or previous post content
- WordPress functions give fatal error in included php file
- Are these wp-content permissions safe?
- Disable all scripts and styles from NextGEN Gallery? [closed]
- Group images in media library
- How to remove style and js from theme and add your own style and js where shortcode is used?
- AJAX button run function
- Detect permalinks when passing querystring in REST API requests
- Getting value from Advanced Custom Fields [closed]
- Get posts from WP_Query and format them on admin_head
- Redux Framework has an embedded demo. Click here to activate the sample config file
- Layout Plugin Admin Pages: Use BootStrap? [closed]
- mp3 audio metadata upload integration: can I autopopulate title, caption, description from id3 tags?
- Removing Super Cache Plugin
- How to sanitize uploaded file filename from a plugin?
- Using WP Category Lists Plugin to Dynamically Display Category (PHP)
- Set and access global variable
- How to change File URL in file uploaded to s3 compatible storage with self written plugin [closed]
- Adding sections in the ‘Pages’ post type
- Problem with creating tables for Plugin
- Single API call exposed via shortcode with params
- Force media library editor to overwrite the original filename?
- AJAX in plugin wp_send_json() sending html
- Replacing a plugin function with a custom renamed function doesn’t work
- Is there a standard way to listen for an on change event of a posts featured image
- Add comments for template variables
- What would I need to write into a custom plugin in order to add a switch for a custom string of CSS to the edit page?
- How do I network enable a plugin for a multisite install via the database?
- Homemade plugin while using Themify Ultra
- Theme/Plugin installation through url on button click
- Enabling plugin failed because MySQL user do not have CREATE permissions
- WP_Error with multiple form validation message
- Updated 4.3 Getting Error: Warning: call_user_func_array() expects parameter 1 to
- Edit a page/post DB data?
- how to update WordPress plugins from external website with nodejs?
- this code is fiven by chat-gtp but nothing match even I key in the value of a cell. help!
- How do i fix this error?
- How do i display the number of images on the “post screen”
- Set the Social Icon Size in footer
- Use custom Javascript for a custom Elementor Widget [closed]
- How can I wordpress cache a database request with no existing plugin?
- Save Confirmation Page Title to WPForms Entry
- Problem on a wordpress website with a plugin [closed]
- Request initiator chain contains old CDN
- How do I set WordPress to send 2 different emails based on criteria in the database when someone submits a form?
- SMTP email does not work even with the right firewall rules
- This is a plugin code that supposed to add badge/label Infront of post title but i don’t understand why it is showing the code tags in frontend
- Custom Search Function in WordPress Returns No Results