Your account expired support, please renew to get your support.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #12560
    Kannan96
    Support Expired

    How to change the default sales batch icon into a discount offer batch icon and how to alternate its size?

    #12569

    Sorry, I don’t understand your issue, please take a photo screenshot with description about this issue, I will check and try to help you.

    #12581
    Kannan96
    Support Expired
    This reply has been marked as private.
    #12582
    Kannan96
    Support Expired
    This reply has been marked as private.
    #12651

    Hi,

    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

    #12657
    Kannan96
    Support Expired
    This reply has been marked as private.
    #12675

    Hi 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 3 years, 3 months ago by Billy Nguyen.
    #12704
    Kannan96
    Support Expired
    This reply has been marked as private.
    #12721

    Please send Cpanel account for me, I will check and try to help you.

    #12749
    Kannan96
    Support Expired
    This reply has been marked as private.
    #12754

    Hi 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

    #12758
    Kannan96
    Support Expired
    This reply has been marked as private.
    #12775

    Hi,

    Please list all of your custom requirements, then we’ll review and quote you a custom quote.

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.