I currently have this coded into my outdated Testament theme and need it transferred to the newest version of Impulse. This code (posted below) allows for ONE product listing to appear under multiple collections, but start with different main photos. I was told that this coding will not work for my new theme and will need to be recoded. Can anyone help me with that and merge it into Impulse? I’m not very familiar with Impulse yet, so I’d need to know what other liquid you’d need to plug this into to make it complete and I’ll comment it below.
To be exact: This coding allows for the image my missy model to appear first in the missy collection and the image of curvy model to appear in the curvy collection even though it’s technically the 2nd photo on the ONE product listing.
Just need the coding referring to “SECOND IMAGE” and “CURVY or CURVY COLLECTION”
Testament product-listing.liquid
{% assign curvy_product = false %}
{% assign curvy_collection = false %}
{% assign product_second_img = false %}
{% for tag in product.tags %}
{% if tag == ‘curvy’ %}
{% assign curvy_product = true %}
{% endif %}
{% endfor %}
{% if collection.handle contains ‘curvy’ or collection contains ‘Curvy’ %}
{% assign curvy_collection = true %}
{% endif %}
{% if curvy_product and curvy_collection %}
{% assign product_second_img = true %}
{% endif %}
{% unless product_second_img %}
{% if settings.quickview %}
{{ ‘products.general.quick_view’ | t }}
{% endif %}
{% else %}
{% if settings.quickview %}
{{ ‘products.general.quick_view’ | t }}
{% endif %}
{% endunless %}
{% if settings.secondary_images_hover == ‘alternate_colors’ and product.images.size > 1 %}