最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Woocommerce custom search

programmeradmin1浏览0评论

I want to build a search form on the homepage where people can search by

  • Product Name
  • Product Category
  • Price range

I have found a few results, but a lot of them are filters which display products.

Instead I want people to fill out the form, and bring any product up that:

  • Matches the string written in the product name field (eg if you type in "sh", products that have "shirt" in the name will appear.
  • Matches the product category
  • Is within the defined price range

Is there a solution out there already like this, or code I can view to use? I do have PHP knowledge, just generally new to the wordpress/woocommerce way of doing things.

Thanks

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论