Search product in wordpress using woocomerece via url

Hi,

you can search the any product using woo commerce by using the given below url but there is some logic just I am describing below:

if you want all product then just pass the post_type=product

if you want all product in specific category then just pass the product_cat=asdf&post_type=product

if you want all product in specific category in the albphabetic order  then just pass the orderby=title

see the given below example and try it.

http:/http://readyourlessons.com/?s=hair&product_cat=asdf&post_type=product&orderby=title

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *