Title: Strike through price when I change currency
Last modified: December 7, 2020

---

# Strike through price when I change currency

 *  Resolved [bettogian](https://wordpress.org/support/users/bettogian/)
 * (@bettogian)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/currew/)
 * Hi,
 * i´ve just pasted a snippet code to delete range price to show only the low price.
   See [here](http://inkanat.pe/codes/Screenshot_1.png)
    but when i change the currency
   appear an odd strike price
 * Why??, or maybe is the snippet code??
 * Greetings
    -  This topic was modified 5 years, 5 months ago by [bettogian](https://wordpress.org/support/users/bettogian/).
    -  This topic was modified 5 years, 5 months ago by [bettogian](https://wordpress.org/support/users/bettogian/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcurrew%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/currew/#post-13765033)
 * Hello
 * please drop me the snippet you are using
 *  Thread Starter [bettogian](https://wordpress.org/support/users/bettogian/)
 * (@bettogian)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/currew/#post-13773590)
 * Now it dissapear when i change currency
 *     ```
       add_filter( 'woocommerce_variable_price_html', 'bbloomer_variation_price_format_min', 9999, 2 );
   
       function bbloomer_variation_price_format_min( $price, $product ) {
          $prices = $product->get_variation_prices( true );
          $min_price = current( $prices['price'] );
          $price = sprintf( __( 'From: %1$s', 'woocommerce' ), wc_price( $min_price ) );
          return $price;
       }
       ```
   
    -  This reply was modified 5 years, 5 months ago by [bettogian](https://wordpress.org/support/users/bettogian/).
 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/currew/#post-13777430)
 * Hello
 * Try to use
 *     ```
       add_filter( 'woocommerce_variable_price_html', 'bbloomer_variation_price_format_min', 9999, 2 );
   
       function bbloomer_variation_price_format_min( $price, $product ) {
          $prices = $product->get_variation_prices( true );
          $min_price = current( $prices['price'] );
               if (class_exists('WOOCS')) {
                   global $WOOCS;
                   if ($WOOCS->is_multiple_allowed) {
                       $currrent = $WOOCS->current_currency;
                       if ($currrent != $WOOCS->default_currency) {
                           $currencies = $WOOCS->get_currencies();
                           $rate = $currencies[$currrent]['rate'];
                           $min_price = $min_price / $rate;
                       }
                   }
               }
          $price = sprintf( __( 'From: %1$s', 'woocommerce' ), wc_price( $min_price ) );
          return $price;
       }
       ```
   
    -  This reply was modified 5 years, 5 months ago by [mediawebster](https://wordpress.org/support/users/mediawebster/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Strike through price when I change currency’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-currency-switcher/assets/icon-256x256.png?rev
   =2844633)
 * [FOX - Currency Switcher Professional for WooCommerce](https://wordpress.org/plugins/woocommerce-currency-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-currency-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-currency-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-currency-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-currency-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-currency-switcher/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/currew/#post-13777430)
 * Status: resolved