Hide the price with a tag in the search drawer on Focal

Hello,

I was trying to apply a method I know to make a price product displaying the word “Price only on demand” with the tag Hide on the concerned product, coupled with a code I add on product-item.liquid.

{% if product.tags contains 'Hide' %}
  
      Price on Demand
  

{% else %}

(normal product price code)

{% endif %}

It works on plain collection or search result pages. But in the end, it doesn’t apply on the search results displayed in the drawer. I already tried to put the same code on all the search liquid, snippet etc, but it doesn’t work. Does someone know how to solve this issue on Focal?

1 Like

@Tho-2

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

Hi @Tho-2 ,

Please go to predictive-search.liquid file, find ‘product-item-meta__price-list-container’ and change code here:

Hope it helps!

1 Like

Thank you very much! Adding my code and making sure the whole area you show is inside the if - endif part of my code actually did the trick.

1 Like

@KetanKumar , sorry for the time loss, I did not see the message. My problem has been solved now. Have a nice day.

1 Like

@Tho-2

no rush thanks for update