Hi everyone,
I’m having trouble adding a variant to my cart.. It continues to only add the first variant. There are only two options on the product and it will only add the top variant. I’m not too familiar with code or anything in this realm so I definitely need some help with this! Thank you!
Here’s the link: https://theknotterydesigns.com/products/macrame-workshop-with-thorn-brewing
I’m also using the app G:Variant + Color Swatch
{% comment %}
For info on test orders:
- General http://docs.shopify.com/manual/your-store/orders/test-orders
- Shopify Payments - http://docs.shopify.com/manual/more/shopify-payments/testing-shopify-payments
{% endcomment %}
{{ 'cart.general.title' | t }}
{% comment %}
Loop through products in the cart
{% endcomment %}
{% for item in cart.items %}
{% comment %}
More image size options at:
- http://docs.shopify.com/themes/filters/product-img-url
{% endcomment %}
{{ item.variant.title }}
{% endunless %}{% if settings.product_vendor_enable %}
{{ item.vendor }}
{% endif %}{% unless item.selling_plan_allocation == nil %}
{{ item.selling_plan_allocation.selling_plan.name }}
{% endunless %}{% assign property_size = item.properties | size %}
{% if property_size > 0 %}
{% for p in item.properties %}
{% assign first_character_in_key = p.first | truncate: 1, ‘’ %}
{% unless p.last == blank or first_character_in_key == ‘_’ %}
{{ p.first }}:
{% if p.last contains ‘/uploads/’ %}
{{ p.last | split: ‘/’ | last }}
{% else %}
{{ p.last }}
{% endif %}
{% endunless %} {% endfor %} {% endif %}
{{ ‘cart.label.quantity’ | t }}
{%- if item.original_line_price != item.final_line_price -%}
{{ ‘products.general.regular_price’ | t }}
{{ item.original_line_price | money }}
{{ ‘products.general.sale_price’ | t }}
{{ item.final_line_price | money }}
{%- else -%}
{{ item.original_line_price | money }}
{%- endif -%}
{%- if item.unit_price_measurement -%}
{{ ‘products.general.unit_price’ | t }}
{%- capture unit_price_separator -%}
/ {{ ‘general.accessibility.unit_price_separator’ | t }}
{%- endcapture -%}
{%- capture unit_price_base_unit -%}
{%- if item.unit_price_measurement.reference_value != 1 -%}
{{- item.unit_price_measurement.reference_value -}}
{%- endif -%}
{{ item.unit_price_measurement.reference_unit }}
{%- endcapture -%}
{{ item.unit_price | money }}{{- unit_price_separator -}}{{- unit_price_base_unit -}}
{%- endif -%}
{%- if item.line_level_discount_allocations != blank -%}
-
{%- for discount_allocation in item.line_level_discount_allocations -%}
- {{ discount_allocation.discount_application.title }} (-{{ discount_allocation.amount | money }}) {%- endfor -%}
{{ 'cart.general.subtotal' | t }}
{{ cart.total_price | money }}
{%- capture taxes_shipping_checkout -%}
{%- if cart.taxes_included and shop.shipping_policy.body != blank -%}
{{ ‘cart.general.taxes_included_and_shipping_policy_html’ | t: link: shop.shipping_policy.url }}
{%- elsif cart.taxes_included -%}
{{ ‘cart.general.taxes_included_but_shipping_at_checkout’ | t }}
{%- elsif shop.shipping_policy.body != blank -%}
{{ ‘cart.general.taxes_and_shipping_policy_at_checkout_html’ | t: link: shop.shipping_policy.url }}
{%- else -%}
{{ ‘cart.general.taxes_and_shipping_at_checkout’ | t }}
{%- endif -%}
{%- endcapture -%}
{{ taxes_shipping_checkout }}
{{ 'cart.general.update' | t }} {{ 'cart.general.checkout' | t }}{% if additional_checkout_buttons and settings.cart_type != ‘drawer’ %}
{% else %}
{% comment %}
The cart is empty
{% endcomment %}
{{ 'cart.general.title' | t }}
{{ 'cart.general.empty' | t }}
{{ 'cart.general.continue_browsing_html' | t: link: routes.all_products_collection_url }}
{{ 'cart.general.cookies_required' | t }}
{% endif %}
