• Resolved wouterpinkhof

    (@wouterpinkhof)


    I am making a site for an art galleray and we are using Woocommerce. It is running in catalog mode through the YITH plugin, and that works fine. We do not want to show prices yet or sell online.

    When I go to a specific product and thenk click on one of the categories it belongs to, I get a nice page with all products belonging to the category. The sort box give me some options to sort the produtcs. But since I do not have prices, I want to get rid of the options referring to pricing. How do I do that?

    Kind regards,

    Wouter Pinkhof

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @wouterpinkhof!

    Please consider adding the following CSS code in your site’s Customize > Additional CSS area which will hopefully hide the sort by price option.

    .orderby option[value="price"],
    .orderby option[value="price-desc"]
    {
       display: none;
    }

    If you’d like to learn more about CSS, I highly recommend using the free tutorials at w3schools. Here, you can find the basics of selectors (how to target the right element on the page), and properties (how to change the element on the page).

    Thread Starter wouterpinkhof

    (@wouterpinkhof)

    Hi Mashi,

    Great. Worked like a charm. Thanks for the feedback.

    I am however amazed this needs to be done in CSS. One would expect it in a product display setting in Woocommerce itself…

    Kind regards,

    Wouter Pinkhof

    Plugin Support Sérgio L. a11n

    (@csnlima)

    Hi @wouterpinkhof,

    Great! Glad to hear it worked.

    As for your suggestion to add this as a core setting, that makes sense, and while we may not implement all suggestions, the discussion around them is what drives us to make great things.

    If you’d like to start a conversation with us and the wider WooCommerce community around your idea, I’d recommend sharing it on our public repo on GH as an “Enhancement Request”!

    https://github.com/woocommerce/woocommerce/issues/new/choose

    Sounds good? See you there!

    I’ll now mark this topic as solved. If you need further help, feel free to open a new one here:

    https://wordpress.org/support/plugin/woocommerce/#new-topic-0

    Best,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I want to remove the “sort by price” option in pages where products are show’ is closed to new replies.