• Resolved seanyscon

    (@seanyscon)


    Hello Everyone

    I have seen this post. I also want to modify the search page.

    I have two filters in the search page.

    The top one is availability, and the bottom one is “type”. I want to add a third filter in the area shown in blue rectangle. Here the filter target will be manufacturer.

    Which PHP file do I need to edit and a little sample code would be nice? Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, you can use standard WooCommerce filter that filters on Product Attribute. Of course, your shop needs to have attributes set up; in this case an attribute for the manufacturer name.

    More info about attributes

    Thread Starter seanyscon

    (@seanyscon)

    Hi

    How can I do that programettically? Thank you

    You don’t need code. Just create an attributte, then attribute values. Set the right attribute in the product; and then go to the side (apperance / widgets and add the woocommerce filter widget.

    Hi @seanyscon

    Thanks for reaching out!

    I want to add a third filter in the area shown in blue rectangle. Here the filter target will be manufacturer.

    As suggested by @davelo, you could add an attribute to each product entitled Manufacturer for example.

    Once all products have been updated, you can now add the Filter by Attribute widget on your shop page under Appearance > Widgets:

    Output:

    How can I do that programettically? Thank you

    Now, should you wish to create your own filter programmatically, this would be outside our scope of support, hence, I am leaving this thread open for a bit to see if anyone can chime in to help you out.

    For questions related to development and custom coding, your best bet is to ask on any of these channels for support. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, too.

    Hope this helps!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Modify woocommerce Search page’ is closed to new replies.