In this topic i would like to share code change currency symbol on woocommrce

Please go to file function.php, Apearace > Theme Editor

add_filter(‘woocommerce_currency_symbol’, ‘change_existing_currency_symbol’, 10, 2);
function change_existing_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case ‘USD’: $currency_symbol = ‘USD’; break;
}
return $currency_symbol;
}

 1,781 total views,  2 views today

Related Posts

  • In this topic i would like to share code change select option button text on woocommrce Please go to file function.php, Apearace > Theme Editor add_filter( 'woocommerce_product_add_to_cart_text', 'cloudttrust_change_select_options_button_text', 9999, 2 );functioncloudttrust_change_select_options_button_text( $label, $product ) {if ( $product->is_type( 'variable' ) ) {return 'select option';}return $label;}
    Tags: return, change, woocommerce, theme, editor, apearace, function.php, file, woocommrce, code
  • In this topic i would like to share code change add to cart button text on woocommrce Please go to file function.php, Apearace > Theme Editor // Change add to cart text on single product pageadd_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_add_to_cart_button_text_single' );function woocommerce_add_to_cart_button_text_single() {return __( 'add to cart', 'woocommerce' );}// Change add to…
    Tags: change, woocommerce, return, function, theme, editor, apearace, function.php, file, woocommrce
  • Someone need to change about text on place order button for support requirement per your company, this solution will help you to fix it Go to backend admin page > Appearance > Theme File Editor > Function.php /**Woocommerce change text on place order buttton*/add_filter( 'woocommerce_order_button_text', 'custom_button_text' );function custom_button_text( $button_text )…
    Tags: change, woocommerce, file, return, function, function.php, editor, theme, website, knowledge
  • In this topic we would like to provide css code for customer price color for products on woocommerce this example below we change product price color to black .woocommerce-Price-amount amount{color: #000 !important;}
    Tags: price, change, woocommerce, topic, code, products, woo, knowledge, website, woocomerce
  • We would like to provide CSS code for custom woocommerce button in wordpress This code help you to custom color on button for your website /* woo button ****/.woocommerce #content input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce-page #content input.button.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce-page button.button.alt:hover,…
    Tags: knowledge, website, woocomerce, wordpress, woo, woocommerce

Categories: