[Resolved] Hide original price and show only sale price

Home Forums Support [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
    roadlink

    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
    roadlink

    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;
    }
    #1472107
    roadlink

    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.

    #1472487
    roadlink

    hi,
    I added pass.

    #1472562
    David
    Staff
    Customer Support

    Hi there,

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

    #1498857
    roadlink

    sure here it is.

    #1498869
    Leo
    Staff
    Customer Support

    So are all products on that page the composite products?

    #1498967
    roadlink

    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

    Glad to hear 🙂

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.