Running into issues adjusting the 'previous product' and 'next product' functionality within Shopify.
I'd like to set it up so that the 'previous' and 'next' loops through all products, carousel style.
Once you're at the last product,'next' will take you back to the first. At the moment, once you reach the end, you can only go to a previous product and backwards through the list.
Any thoughts?
Here's my base code:
{% if collection.previous_product %}
{{ '«' | link_to: collection.previous_product }}
{% endif %}
{% if collection.next_product %}
{% if collection.previous_product %} | {% endif %}
{{ '»' | link_to: collection.next_product }}
{% endif %}