• Hello! help me. How do I add a search function to the store description?

    There is text in the store description (chips)
    A person can request a search for chips in a special field and only stores with a description (chips) will be opened for him
    How to implement this? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    There’s no build in support for the searching the description field by itself.

    Only if your comfortable with code, you might get this to work, but you probably also have to change the core code for this.

    The problem starts with that the input is by default send to the Google Geocode API to get the coordinates, so this you will to work around by disabling this action it the wpsl-gmaps.js when the submit button is clicked and then directly call the makeAjaxRequest function..

    A custom template is required to for the custom checkbox that indicates it’s a special search ( do include this class on it to make sure the value in included in the submitted data ).

    Next you need to use this and this filter to change the SQL query so that it searches through the description field.

    Thread Starter trainee

    (@onbroth)

    I understood. I will try to do it. Thanks a lot for your reply and help.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘search by description’ is closed to new replies.