Hi there,
I’m new to Shopify so would appreciate if I can get some direction on how to add custom add-ons to cart drawer.
Specifically I want to add to cart-drawer.liquid this piece, but since there is no product in cart-drawer, I’m having issues.
{%- for tag in product.tags -%}
{%- if tag contains '__with' -%}
{%- assign product_handle = tag | split: '__with:' | last -%}
{%- assign associated_product = all_products[product_handle] -%}
{%- if associated_product != empty -%}
{% render 'product-item', product: associated_product, use_horizontal: true, show_labels: false, show_product_info: true, show_vendor: false, show_price_on_hover: false %}
{%- break -%}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
