Home Forums Themes Support Claue How to edit sale badge

Topic Resolution: Resolved
Viewing 2 reply threads
  • Author
    Posts
    • #26918

      Hi Again,

      I jst want to ask about the sale badge. Is there a setting to add (-) or (off) to the badge

      exampe: instead of just “57.2%”, we can change it to “-57.2%” or “57.2% OFF”

    • #26928

      Hi Van,

      1. Please go to themes/claue/core/libraries/vendors/woocommerce/templates/loop/sale-flash.php

      line 50 change

      echo '<span class="onsale pa right">' . $price . sprintf( __('%s', 'claue' ), $percentage . '%' ) . '</span>';

      to

      echo '<span class="onsale pa right">' . $price . sprintf( __('-%s', 'claue' ), $percentage . '%' ) . '</span>';

      line 64 change

      echo '<span class="onsale pa right">' . $price . sprintf( __('%s', 'claue' ), $maximumper . '%' ) . '</span>';

      to

      echo '<span class="onsale pa right">' . $price . sprintf( __('-%s', 'claue' ), $maximumper . '%' ) . '</span>';

      2. And file themes/claue/core/libraries/vendors/woocommerce/templates/single-product/sale-flash.php

      line 39 change

      echo '<span class="onsale pa right">' . $price . sprintf( __('%s', 'claue' ), $percentage . '%' ) . '</span>';

      to

      echo '<span class="onsale pa right">' . $price . sprintf( __('-%s', 'claue' ), $percentage . '%' ) . '</span>';

      line 53 change

      echo '<span class="onsale pa right">' . $price . sprintf( __('%s', 'claue' ), $maximumper . '%' ) . '</span>';

      to

      echo '<span class="onsale pa right">' . $price . sprintf( __('-%s', 'claue' ), $maximumper . '%' ) . '</span>';

      Regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #26931

      Hi Harry,

      Success,!! thank you very much.

      Cheers,

      Van

Viewing 2 reply threads

You must be logged in to reply to this topic.