Personalized checkout and custom promotions with Shopify Scripts
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi,
I'm looking for a solution for getting a list of products that the user does not own.
I know i can iterate through products in a collection with :
{% for product in collections.all.products %} { endfor %}
I also know i can iterate through a a list of items that the user owns with:
{% for order in customer.orders %} {% assign line_item = order.line.items %} {% for line_item in order.line_items %} {% endfor %} {% endfor %}
But how do I iterate through a list of items that contain all products excluding the ones that are own by the customer?
Any help would be highly appreciated!