Hello I added this cart to my cart-drawer.liquid and it works until I click a remove button or quantity button in my cart, which causes the cart to reset and the javascript not to be used anymore I think. URL: Glow Curtain: 400 LED Lights for a Magical Ambiance – InteriorGlows
{% if settings.cart_upsell_products != blank %}
{% assign cart_product_ids = cart.items | map: 'product_id' %}
{% assign upsell_count = 0 %}
{% for product in settings.cart_upsell_products %}
{% unless cart_product_ids contains product.id %}
{% assign upsell_count = upsell_count | plus: 1 %}
{% endunless %}
{% endfor %}
{% if upsell_count > 0 %}
### Je kunt dit ook leuk vinden
{% if upsell_count > 1 %}
{% for product in settings.cart_upsell_products %}
{% unless cart_product_ids contains product.id %}
{{ product.title }}
{{ product.price | money }}
{% endunless %}
{% endfor %}
‹
›
{% else %}
{% for product in settings.cart_upsell_products %}
{% unless cart_product_ids contains product.id %}
{{ product.title }}
{{ product.price | money }}
{% endunless %}
{% endfor %}
{% endif %}
{% endif %}
{% endif %}