• Hello,

    I have one question. Is there any way to make my old price crossed out in the side cart when there is a discount enable?

    When i open my side cart i have something like that

    1 X 15.00z? 13.50z? = 13.50z?

    and i would love to have something like that

    1 X 15.00z? 13.50z? = 13.50z?

    Is there any way i can do it? please help me ??

    Have a nice day!
    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter shad0w3k

    (@shad0w3k)

    Could anyone help me please?

    Plugin Author xootix

    (@xootix)

    Please add this to your functions.php

    /* Default price HTML*/
    add_filter( 'woocommerce_cart_item_price', function( $price, $cart_item, $cart_item_key ){
     
     
                $_product   = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key );
     
                return $_product->get_price_html();
     
    }, PHP_INT_MAX, 3 );
    
    Thread Starter shad0w3k

    (@shad0w3k)

    Hi,

    Thank you for answer, I’ve added this to my functions.php but still having the same problem.

    Do you have idea what could be the problem?

    I’m sending you the screenshot to see the issue

    screenshot

    Thread Starter shad0w3k

    (@shad0w3k)

    Hi,

    I still have a problem and i decided that i will just off showing the prices in the side cart. But now below the item there is always a quantity that starts with “Qty”. Can I somehow change this “Qty” to something else? I would like it to be in polish but i can nowhere find possibility to change this “Qty” to something else.

    Can you help me to change this text with some additional css or something like that please?

    • This reply was modified 2 years, 11 months ago by shad0w3k.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Old price cross out while discounted.’ is closed to new replies.