• Resolved Guido

    (@guido07111975)


    Hi,

    I’m using this tutorial to add my custom fields to the Woocommerce product search function (see: Search Woocommerce Products by custom fields example).

    Woocommerce search is the same as normal WP search, but only searches in post type ‘product’.

    This script works great local and on my own (Linux) server, but on another server the search results are zero.. always. When removing this script, Woocommerce search works again.

    Only thing I can think of is a conflict on certain types of servers and the SQL variables like:
    AND CAST / INNER JOIN / AS CHAR / LIKE

    Is this possible?

    Guido

    https://www.ads-software.com/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Guido

    (@guido07111975)

    I kind of solved it by not using this script but a plugin called Search Everything.

    Guido

    Why woo does not have native search by SKU is confusing. I had to resort to a similar solution which is not the best idea. Faster result can show from only searching a couple of fields.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add custom fields to Woocommerce product search’ is closed to new replies.