I currently have this coded into my outdated Testament theme but need it transferred over to the latest Impulse theme. I was told that code won’t work and that it would need to be recoded. Could anyone help with recoding this and helping me plug it in the correct place in the Impulse theme? I’m not familiar with the Impulse since I just downloaded it. So I’m not entirely sure which liquid you’d need - so just let me know so I can copy/paste it below.
** Just looking for the coding regarding SECOND IMAGE / “CURVY” or CURVY COLLECTION" **
This coding allows for the image of my missy model to appear under missy collection first and the image my curvy model to appear first under curvy although the image is technically 2nd under the product listing. This allows me to run one product listing instead of having to split missy/curvy into two product listings.
Here is the coding from the Testament theme: 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 %}