I’m trying to add multiple line item properties to one product template and while they do show in the cart once added the product won’t remove from the cart properly. When there is just one line item property in the template I can remove the product properly but when there is more than one there is an issue. How do I fix this so I can have multiple line item properties? My website is https://wackytropics.com and the product I’m trying to fix is this stuffed tiger. The majority of the code for the section template is below ( the code I added is highlighted in red) Thanks in advance
{% case section.settings.media_size %}
{% when ‘small’ %}
{%- assign product_media_width = ‘medium-up–one-third’ -%}
{%- assign product_description_width = ‘medium-up–two-thirds’ -%}
{%- assign height = 345 -%}
{% when ‘medium’ %}
{%- assign product_media_width = ‘medium-up–one-half’ -%}
{%- assign product_description_width = ‘medium-up–one-half’ -%}
{%- assign height = 530 -%}
{% when ‘large’ %}
{%- assign product_media_width = ‘medium-up–two-thirds’ -%}
{%- assign product_description_width = ‘medium-up–one-third’ -%}
{%- assign height = 720 -%}
{% when ‘full’ %}
{%- assign product_media_width = ‘’ -%}
{%- assign product_description_width = ‘’ -%}
{%- assign height = 1090 -%}
{%- assign enable_image_zoom = false -%}
{% endcase %}
{%- for media in product.media -%}
{% include ‘media’, media: media, featured_media: featured_media, height: height, enable_image_zoom: enable_image_zoom, image_zoom_size: product_image_zoom_size, image_scale: product_image_scale %}
{%- endfor -%}
{% assign first_3d_model = product.media | where: “media_type”, “model” | first %}
{%- if first_3d_model -%}
<button
aria-label=“{{ ‘products.product.view_in_space_label’ | t }}”
class=“product-single__view-in-space”
data-shopify-xr
data-shopify-model3d-id=“{{ first_3d_model.id }}”
data-shopify-title=“{{ product.title | escape }}”
data-shopify-xr-hidden
{% include ‘icon-3d-badge-full-color’ %}{{ ‘products.product.view_in_space’ | t }}
{%- endif -%}
{% if product.media.size > 1 %}
{% if product.media.size > 4 %}
{%- assign enable_thumbnail_slides = true -%}
{% endif %}
-
{% if enable_thumbnail_slides == true %}
-
{%- capture thumbnailAlt -%}
{%- if media.media_type == ‘video’ or media.media_type == ‘external_video’ -%}
{{ ‘sections.featured_product.video_thumbnail_alt’ | t: imageAlt: media.alt | escape }}
{%- elsif media.media_type == ‘model’ -%}
{{ ‘sections.featured_product.model_thumbnail_alt’ | t: imageAlt: media.alt | escape }}
{%- else -%}
{{ ‘sections.featured_product.gallery_thumbnail_alt’ | t: imageAlt: media.alt | escape }}
{%- endif -%}
{%- endcapture -%}{%- if media.media_type == ‘video’ or media.media_type ==‘external_video’ -%}
{% include 'icon-video-badge-full-color' %}{%- endif -%} {%- if media.media_type == 'model' -%}{% include 'icon-3d-badge-full-color' %}{%- endif -%}
{% endfor %}
{% for media in product.media %}
{% if enable_thumbnail_slides == true %}
{{ product.title }}
{% comment %}Start automatically added Judge.me widget{% endcomment %} {% render 'judgeme_widgets', widget_type: 'judgeme_preview_badge', concierge_install: true, product: product %} {% comment %}End automatically added Judge.me widget{% endcomment %}{%- if shop.taxes_included or shop.shipping_policy.body != blank -%}
{% capture “form_classes” -%}
product-form product-form-{{ section.id }}
{%- if section.settings.enable_payment_button and product.has_only_default_variant %} product-form–payment-button-no-variants {%- endif -%}
{%- if current_variant.available == false %} product-form–variant-sold-out {%- endif -%}
{%- endcapture %}
{% form ‘product’, product, class:form_classes, data-product-form: ‘’ %}
{% unless product.has_only_default_variant %}
Options
Phrase Only
Name & Phrase
Name & Birthday Number
First Name *8 characters only*
Birthday Number *2 characters only*
{% if section.settings.show_quantity_selector %}
{%- comment -%}
Live region for announcing updated price and availability to screen readers
{%- endcomment -%}
{%- comment -%}
Live region for announcing that the product form has been submitted and the
product is in the process being added to the cart
{%- endcomment -%}
{{ 'products.product.loader_label' | t }}
{% if section.settings.show_share_buttons %}
{% include ‘social-sharing’, share_title: product.title, share_permalink: product.url, share_image: product.featured_media %}
{% endif %}
{% comment %}Start automatically added Judge.me widget{% endcomment %}
{% render ‘judgeme_widgets’, widget_type: ‘judgeme_review_widget’, concierge_install: true, product: product %}
{% comment %}End automatically added Judge.me widget{% endcomment %}
{% unless product == empty %}
{% endunless %}
{% schema %}