Hi @webtitans18
Thank you for using our plugin.
We apologize for the inconvenience.
To round prices you can use the WooCommerce settings – general tab – number of decimals option.
In case you would like to use the plugin filters and round them by yourself, you can check the below methods to add custom functions to your theme.
You can follow the below steps and check it out. It will round prices by WooCommerce number of decimals option.
- Go to the plugin settings – general tab – product pricing section.
- Set the “Round Adjustment” to “Yes” and save settings.
If the above option can not help you then you can check the below functions and use the appropriate filters to do what you want.
You can check the “get_price_html” method at the below file.
\wp-content\plugins\easy-woocommerce-discounts\public\class-wccs-public-product-pricing.php
The above function, changes the product price on the product page.
As you can see we used “wc_price” in the codes for the prices.
And the “get_price” method at the below file.
\wp-content\plugins\easy-woocommerce-discounts\public\class-wccs-public-cart-item-pricing.php
It will changes the product price in the cart.
I hope it helps.
Best Regards
-
This reply was modified 2 years, 6 months ago by
AsanaPlugins.