Remove Price from Search Bar avenue theme


Hi, I hope someone can help!

When using the ‘search bar’ I would like to remove the price from the product and wondered if someone could help me do that. I am using the Avenue theme.

Thanks in advance,

Wilks

I understand you want to hide the price from the search result,

Do you need help doing it or you can do it yourself if I provide the code?

Hi @WILKS

I understand you want to remove the price from the search result,

To remove the product price from the search bar results in the Avenue theme, you will need to edit the theme’s search template file. Specifically, you will need to locate the file that controls the display of search results, and remove or comment out the code that displays the price.

Here is an example of how you could remove the price from the search bar results:

  1. In your Shopify admin, go to Online Store > Themes > Actions > Edit code.

  2. In the theme code editor, navigate to the search.liquid file, which is located in the “Templates” folder.

  3. Locate the line of code that displays the price. It should look something like this: {{ product.price | money }}

  4. To remove the price, you can either delete that line of code or comment it out by adding {% comment %} before the line and {% endcomment %} after it

  5. After that save the changes and check your search bar again, the price should be removed from the search bar result.

Please keep in mind that this is an example, and the actual code may differ depending on your theme and customization. Also, i would recommend you to take a backup of the theme before editing.

Hi guys, thanks for your help. I can’t seem to find anything for

‘product.price | money’

Thanks

Hi, thanks for your response.

Are you able to help me set this up? Thanks