Hello my product images are missing in the search results for Debut theme. My store URL is lowcountry-key.myshopify.com. Password: password
Please let me know if you can help.
Solved! Go to the solution
This is an accepted solution.
product-card-grid snippet includes image-style snippet like so:
{% include 'image-style', image: preview_image, height: max_height, wrapper_id: wrapper_id, img_id: img_id %}
where max_height is set in collection-template section like this:
{% case section.settings.grid %} {% when 2 %} {%- assign max_height = 530 -%} {% when 3 %} {%- assign max_height = 345 -%} {% when 4 %} {%- assign max_height = 250 -%} {% when 5 %} {%- assign max_height = 195 -%} {% endcase %}
Since by default search template uses list view and not a grid view, this max_height variable is not defined and your product images aren't rendered properly.
So, try adding code like this at the top of your search template:
{%- assign max_height = 250 -%}
User | Count |
---|---|
542 | |
209 | |
126 | |
79 | |
44 |