Home › Forums › Themes Support › Claue › Round The Discount Tag and Remove The Minus Sign
- This topic has 8 replies, 2 voices, and was last updated 4 years ago by muslu.
-
AuthorPosts
-
-
April 5, 2020 at 8:59 pm #35865musluSupport Expired
Hi, we want to round the discount tag and also remove the minus sign in front of the number.
But we want to remain two decimals after point on the price.
I mean,
Price = 99.90 (with two decimals remaining)
Discount = 20% (an integer with no minus sign)
Thanks.
-
April 5, 2020 at 10:58 pm #35868HarrySupport Expired
Hi,
1, Please add below code to Claue > Theme Option > General Layout > Custom CSS
.badge span { border-radius: 50%; width: 40px; height: 40px; line-height: 38px; }
2. Please go to WooCommerce > Settings > Currency options > Number of decimals > 2 https://prnt.sc/rti5yd
3. Please download attach file, extract to claue-child > woocommerce > single-product and edit code in line 53
echo '<span class="onsale pa right">' . $price . sprintf( __('-%s', 'claue' ), $maximumper . '%' ) . '</span>';
and change to
echo '<span class="onsale pa right">' . $price . sprintf( __('%s', 'claue' ), $maximumper . '%' ) . '</span>';
Kind regards
Attachments:
You must be logged in to view attached files.Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
April 6, 2020 at 12:59 pm #35881musluSupport Expired
Thank you but how can I do the third step? I don’t have any clue.
By the way, I mean the discount number is like ‘20%’ NOT ‘-20.8%’
Thanks
-
April 6, 2020 at 4:18 pm #35890HarrySupport Expired
Please send me admin account and check in Set as private reply. We will help you do it.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
April 6, 2020 at 4:27 pm #35891musluSupport ExpiredThis reply has been marked as private.
-
April 6, 2020 at 4:39 pm #35898HarrySupport Expired
You forgot send me your site admin url.
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
April 6, 2020 at 4:58 pm #35900musluSupport ExpiredThis reply has been marked as private.
-
April 6, 2020 at 5:36 pm #35901HarrySupport Expired
I help you done it. Please check
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
April 6, 2020 at 5:51 pm #35902musluSupport Expired
Awesome, thank you so much
-
-
AuthorPosts
You must be logged in to reply to this topic.