HomePage › Forums › Themes Support › Freshio – Organic & Food Store WordPress Theme › Sales batch icon
Tagged: sales badge icon
- This topic has 12 replies, 2 voices, and was last updated 2 years, 9 months ago by Billy Nguyen.
-
AuthorPosts
-
July 19, 2021 at 2:52 pm #12560Kannan96Support Expired
How to change the default sales batch icon into a discount offer batch icon and how to alternate its size?
July 19, 2021 at 4:42 pm #12569Sorry, I don’t understand your issue, please take a photo screenshot with description about this issue, I will check and try to help you.
July 21, 2021 at 9:31 am #12581Kannan96Support ExpiredThis reply has been marked as private.July 21, 2021 at 9:32 am #12582Kannan96Support ExpiredThis reply has been marked as private.July 21, 2021 at 4:39 pm #12651Hi,
I can’t edit your file.
Please use this code, copy and paste into file functions.php:
add_filter('woocommerce_sale_flash', 'freshio_fnc_sale_flash', 10, 1); function freshio_fnc_sale_flash($product){ global $product; if ( $product->is_on_sale() ) : $sale = ($product->get_regular_price() - $product->get_sale_price())/$product->get_regular_price()*100; return '<span class="onsale">' . sprintf( esc_html__( 'discount %2d%%', 'woocommerce' ), $sale ) . '</span>'; endif; }
-You need to add sale price for product: https://prnt.sc/1dvp6v5
July 22, 2021 at 9:55 am #12657Kannan96Support ExpiredThis reply has been marked as private.July 22, 2021 at 9:57 am #12675Hi you,
You need to go to cpanel to edit the code, maybe your hosting is blocking editing directly from WordPress admin.
PLEASE do not spam your comments in other topics, your problem will be answered in this thread. If you continue to spam in other topics, we will stop supporting you immediately
- This reply was modified 2 years, 9 months ago by Billy Nguyen.
July 22, 2021 at 8:40 pm #12704Kannan96Support ExpiredThis reply has been marked as private.July 23, 2021 at 11:11 am #12721Please send Cpanel account for me, I will check and try to help you.
July 23, 2021 at 4:46 pm #12749Kannan96Support ExpiredThis reply has been marked as private.July 23, 2021 at 6:03 pm #12754Hi again,
I can only help you to calculate the discount % of single product without variation, with discount products with variation, the calculation and code is quite complicated: https://prnt.sc/1eqls7p
If you still want to do it, we will charge for this custom service.You can refer to the instructions here: How to display “You Save x%” below sale prices for simple and variable products in WooCommerce
July 23, 2021 at 7:34 pm #12758Kannan96Support ExpiredThis reply has been marked as private.July 24, 2021 at 10:37 am #12775Hi,
Please list all of your custom requirements, then we’ll review and quote you a custom quote.
-
AuthorPosts
You must be logged in to reply to this topic.