Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Search field

Why does my search field show code instead of products?

Dobrison
Visitor
2 0 0

Hi community, 

Please help me with the following situation.

When you try to find something in the search field, instead of products I receive some code line.

Please help.

Thank you.

Untitled2.png

Replies 3 (3)

LukaszFormela
Excursionist
37 7 15

Hi @Dobrison , that looks like a JSON response, a raw data sent by Shopify to your store, which should be translated by your theme to customer friendly search results. Unfortunately I don't think this can be resolved without accessing your website code, however if you post your website address, we could give you some hints!

Available for part-time theme edits/development | UK timezone
Dobrison
Visitor
2 0 0

Hi, 

Thank you for your answer.

The website is https://ssimarine.co.uk

Regards,

Dobrison

 

diego_ezfy
Shopify Partner
2969 571 917

@Dobrison 

Long story short, the "suggestion" part of your autosearch is broken.

If you got a developer to get that coded in for you, please reach back to him to fix it. If this is from an app or from the theme you've purchased, reach back to the developers as well. Alternatively, you may hire a new developer to assist you and get this fixed.

The code below will hide the issue but will not fix it.

1. In your Shopify Admin go to: online store > themes > actions > edit code
2. Find Asset > theme.scss.liquid or theme.css and paste this at the bottom of the file:

[id] .autocomplete-suggestions{
    display: none !important;
}



Kind regards,
Diego