[Resolved] Hide original price and show only sale price

Home Forums Support Hide original price and show only sale price

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1470855
    tertas

    Hi,

    I am using below css to hide original price for “composite products”. (Woodmart theme)
    Same code doesn’t work with GP and Prime.

    Any idea?

    
    /* Composite product remove previous price */
    .archive .product-type-composite .price .from {
        display: none!important;
    }
    
    .single-product .product-type-composite .price .from {
        display: none!important;
    }
    #1470965
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    .woocommerce ul.products li.product .price del {
        display: none;
    }
    .woocommerce div.product p.price del, .woocommerce div.product span.price del {
        display: none;
    }
    #1472050
    tertas

    Hi Leo,

    Thank you.
    I have changed your code a bit. This one works good in single product pages.
    If it is composite product, It is hiding original price and if it is simple product original price is there.

    .woocommerce .product-type-composite div.product p.price del, .woocommerce .product-type-composite div.product span.price del {
        display: none;
    }

    This one is also works good in shop pages.

    .archive .product-type-composite ul.products li.product .price del {
        display: none;
    }

    But i couldn’t solve the issue for main page, which is using woocommerce shorcodes to show products.

    #1472059
    Elvin
    Staff
    Customer Support

    Hi,

    This should work on the products on your homepage.

    .woocommerce ul.products li.product .price del {
        display: none;
    }

    A wise man once said:
    "Have you cleared your cache?"

    #1472107
    tertas

    Hi Elvin,

    Yes it is working but delete for all products.
    I want to delete only for composite products.
    Thanks

    #1472118
    Elvin
    Staff
    Customer Support

    Your site seems to be in maintenance mode.

    Can you open it up so we could take another look? Thanks.

    A wise man once said:
    "Have you cleared your cache?"

    #1472487
    tertas

    hi,
    I added pass.

    #1472562
    David
    Staff
    Customer Support

    Hi there,

    can you share the URL to one of your composite products?

    #1498857
    tertas

    sure here it is.

    #1498869
    Leo
    Staff
    Customer Support

    So are all products on that page the composite products?

    #1498967
    tertas

    I have managed to fix it with below code in category pages.
    Just couldn’t hide from main page, which created with woocommerce shortcodes.

    Thanks for help.

    .archive .product-type-composite ul.products li.product .price del {
        display: none;
    }
    .woocommerce .product-type-composite div.product p.price del, .woocommerce .product-type-composite div.product span.price del {
        display: none;
    }
    #1498980
    Leo
    Staff
    Customer Support
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.