Search Result Does Not Show Product Title

New Member
17 0 0

Hello, I have been having problems with my search result. 

My search result does not show the Product Title or Vendor which shows in product list in other pages. 

How do I make this appear? 

Link to Problem: https://facegoodies.myshopify.com/search?q=bb

Shop Address: https://facegoodies.myshopify.com

PW: quaort

product-list-repeatable-item.liquid

{% if these_are_related_products %}
    {% assign producturl = product-list-repeatable-item.url %}
{% else %}
    {% assign producturl = product-list-repeatable-item.url | within: collection %}
{% endif %}
{% if forloop.last %}
    {% assign lastclass = ' last' %}
{% else %}
    {% assign lastclass = '' %}
{% endif %}


{% if template contains 'collection' %}
{% if row_limit == 2 %}
{% capture lastclass %}{{ lastclass }}{% cycle ' startrow', '' %}{% endcapture %}
{% elsif row_limit == 3 %}
{% capture lastclass %}{{ lastclass }}{% cycle ' startrow', '', '' %}{% endcapture %}
{% elsif row_limit == 5 %}
{% capture lastclass %}{{ lastclass }}{% cycle ' startrow', '', '', '', '' %}{% endcapture %}
{% else %}
{% capture lastclass %}{{ lastclass }}{% cycle ' startrow', '', '', '' %}{% endcapture %}
{% endif %}
{% endif %}

{% if row_limit == 2 %}
    <div class="product eight columns{{ lastclass }}">
    {% capture output %}
        {% cycle '<div class="columnfluff"></div>', '' %}
    {% endcapture %}
    {% unless forloop.last %}{{ output }}{% endunless %}
{% elsif row_limit == 3 %}
    <div class="product one-third column{{ lastclass }}">
    {% capture output %}
        {% cycle '<div class="columnfluff"></div>', '<div class="columnfluff"></div>', '' %}
    {% endcapture %}
    {% unless forloop.last %}{{ output }}{% endunless %}
{% elsif row_limit == 5 %}
    <div class="product one-fifth column{{ lastclass }}">
    {% capture output %}
        {% cycle '<div class="columnfluff"></div>', '<div class="columnfluff"></div>', '<div class="columnfluff"></div>', '<div class="columnfluff"></div>', '' %}
    {% endcapture %}
    {% unless forloop.last %}{{ output }}{% endunless %}
{% else %}
    <div class="product four columns{{ lastclass }}">
    {% capture output %}
        {% cycle '<div class="columnfluff"></div>', '<div class="columnfluff"></div>', '<div class="columnfluff"></div>', '' %}
    {% endcapture %}
    {% unless forloop.last %}{{ output }}{% endunless %}
{% endif %}
    {% assign product_thumb_size = 'large' %}
    <div class="imgcont loadingimg">
        {% if settings.prod_thumb_hover_method == 'zoom' %}
      		<div class="image-inner-wrap">
          	<a class="delayedzoom" href="{{ producturl }}" data-jqzoom-img-override="{{ product-list-repeatable-item.featured_image | product_img_url: 'grande' }}" rel="" title="">
              	<img src="{{ product-list-repeatable-item.featured_image | product_img_url: product_thumb_size }}" alt="{{ product-list-repeatable-item.featured_image.alt }}" />
          	</a>
              {% if product-list-repeatable-item.compare_at_price_max > product-list-repeatable-item.price and settings.prod_sale_mode != 'none' %}
              <div class="salecontainer"><a class="sale" href="{{ producturl }}">{{ 'products.listing.sale' | t }}</a></div>
              {% endif %}
      		</div>
        {% elsif settings.prod_thumb_hover_method == 'duelimage' and product-list-repeatable-item.images.size > 1 %}
            <a class="imgswitch image-inner-wrap" href="{{ producturl }}">
              <img src="{{ product-list-repeatable-item.featured_image | product_img_url: product_thumb_size }}" alt="{{ product-list-repeatable-item.featured_image.alt }}" />
              <div class= "altimgcont">
                <img class="altimg" src="{{ product-list-repeatable-item.images[1] | product_img_url: product_thumb_size }}" alt="{{ product-list-repeatable-item.images[1].alt }}" />
              </div>
              
              {% if product-list-repeatable-item.compare_at_price_max > product-list-repeatable-item.price and settings.prod_sale_mode != 'none' %}
              <div class="salecontainer"><span class="sale" href="{{ producturl }}">{{ 'products.listing.sale' | t }}</span></div>
              {% endif %}
            </a>
        {% else %}
            <a href="{{ producturl }}" class="image-inner-wrap {% if settings.prod_thumb_hover_method == 'simple' %}highlight{% endif %}">
              <img src="{{ product-list-repeatable-item.featured_image | product_img_url: product_thumb_size }}" alt="{{ product-list-repeatable-item.featured_image.alt }}" />
              {% if product-list-repeatable-item.compare_at_price_max > product-list-repeatable-item.price and settings.prod_sale_mode != 'none' %}
              <div class="salecontainer"><span class="sale" href="{{ producturl }}">{{ 'products.listing.sale' | t }}</span></div>
              {% endif %}
            </a>
      {% endif %}
    </div>   
      
  <p class="vendor">

{{ product.vendor }}

</p>
      
   <p class="title">{{ product.title | link_to: product.url }}</p>
    {% unless settings.prod_thumb_desc_chars == '0' %}
    
    {% endunless %}
    
    <div class="price">
       <p align="center">
        {% if product-list-repeatable-item.compare_at_price_max > product-list-repeatable-item.price %}<span class="reducedfrom">{{ product-list-repeatable-item.compare_at_price_max | money }}</span>{% endif %}
        {% if product-list-repeatable-item.price_varies %}<span class="from">{{ 'products.listing.from' | t }}</span>{% endif %}
		<span class="actual">{{ product-list-repeatable-item.price | money }}</span>
	</p> </div>
</div>
      
      

 

search.liquid 

<div id="crumbs" class="sixteen columns">
    <a href="/" title="{{ 'general.breadcrumbs.home' | t }}">{{ 'general.breadcrumbs.home' | t }}</a>
    &raquo;
    {{ 'general.search.title' | t }}
</div><!-- #crumbs -->

{% assign row_limit = 5 %}
<div>
    {% if search.performed %}
        <h1 class="sixteen columns">{{ 'general.search.your_search_html' | t: terms: search.terms}}</h1>
        
        {% paginate search.results by 20 %}
            {% if search.results == empty %}
                <div class="sixteen columns row formfields">
                    <p class="row">{{ 'general.search.no_results' | t }}</p>
                    <h4 class="row">{{ 'general.search.subtext' | t }}</h4>
                    <form action="/search" class="inputrow">
                        <input type="text" id="q" name="q" value="" x-webkit-speech />
                        <input class="button altcolour normalwidth" type="submit" value="{{ 'general.search.submit' | t }}"/>
                    </form>
                </div>
                
                {% include 'notfound-products' %}
                
            {% else %}
  				<div class="productlist">
                {% for item in search.results %}
                    {% if item.type %}
                        {% include 'product-list-repeatable-item' with item %}
                    {% else %}
                  <div class="product page-block one-fifth column">
                    {% unless forloop.last %}
                    {% cycle '<div class="columnfluff"></div>', '<div class="columnfluff"></div>', '<div class="columnfluff"></div>', '<div class="columnfluff"></div>', '' %}
                    {% endunless %}
                    <div class="imgcont"></div>
                    <p class="title">{{ item.title | link_to: item.url }}</p>
                    <a class="desc" href="{{ item.url }}">
                      {% capture stripdesc %}{% include 'process-html-strip' with item.content %}{% endcapture %}
                      {{ stripdesc | strip_html | truncate: 140 | highlight: search.terms }}
                  	</a>
                    <div class="price">{{ 'general.search.read_more_html' | t | append: ' &rarr;' | link_to: item.url }}</div>
                  </div>
                  {% endif %}
                  {% cycle '', '', '', '', '<div class="cf"></div>' %}
                {% endfor %}
                </div>
            {% endif %}
            <div class="sixteen columns">
                {% include 'pagination' %}
            </div>
        {% endpaginate %}
    {% else %}
        <h6 class="sixteen columns middletext">{{ 'general.search.subtext' | t }}</h6>
        <form class="middleit" action="/search">
            <input type="text" name="q" class="middleit" value="" x-webkit-speech />
            <input class="button altcolour" type="submit" value="{{ 'general.search.submit' | t }}"/>
        </form>
        {% include 'notfound-products' %}
    {% endif %}
</div>

 

0 Likes
Highlighted
Shopify Partner
115 0 7

It looks as though the issue is here:

<p class="title">{{ product.title | link_to: product.url }}</p>

I think this should actually be this:

<p class="title">{{ product-list-repeatable-item.title | link_to: producturl }}</p>

 

The product object is being passed to the product-list-repeatable-item.liquid snippet using the "with" parameter. So the product object is available within the snippet as a variable named "product-list-repeatable-item"(the "with" parameter always includes the variable as the snippet's name). So requesting the product object as a variable named "product" won't return anything, the correct variable is "product-list-repeatable-item".

 

Try this and let me know if it works. I haven't tested it myself.

0 Likes
New Member
17 0 0

Hi Halley,

Thank you so much for the reply.

But unfortunatly that solution does not work :(

Any other ideas? 

 

0 Likes
Shopify Partner
115 0 7

What theme are you using?

0 Likes
Shopify Partner
115 0 7

Well, it looks like you are using the theme "Clean". Unfortunately because it is a premium theme I can't install it on my dev store. I would recommend contacting the theme devs at shopify@cleanthemes.co.uk.

0 Likes
New Member
17 0 0

Hi Halley, 

I have contacted the developer but they have said they can't help me with this issue. Can I give you access to my store and could you take a look? My budget is tight and this issue is driving me nuts. if you give me your email I will give you access. jkbae1127@gmail.com is my personal email. 

Thank you

0 Likes