Remove Zero Decimals from product price in WooCommerce
you can remove zero from the product price by using this code on function.php file. add_filter( 'woocommerce_price_trim_zeros', '__return_true' );
you can remove zero from the product price by using this code on function.php file. add_filter( 'woocommerce_price_trim_zeros', '__return_true' );
You can change the currency symbol by using the following code: /** * Change a currency symbol */ add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2); function change_existing_currency_symbol( $currency_symbol, $currency ) { switch( $currency…
Future blog post idea for this post
At first, we can see the hook used in woocommerce product page.