Hello,
I am trying to add personalisation to one of my products - here. Specifically, I am looking to use line item properties to let customers enter the text that they want on the product.
I have been following this Shopify guide for how to make this work for my theme, but unfortunately, it doesn’t seem to be showing the line item properties in the cart.
Based on some simple analysis, it seems as though ‘property_size’ is 0. As per my code below, the property_size should actually be one given that there is 1 property being set on the product page (initials).
Can somebody please advise on where I might be going wrong?
Thanks in advance,
Liam
Product page form
-----------------
{%- form 'product', product -%}
{%- render 'product-variants', product: product, color_swatches: section.settings.show_color_swatches -%}
{%- if section.settings.show_quantity_selector -%}
{%- endif -%}
{%- liquid
unless product.tags contains 'preorder'
if section.settings.enable_payment_button
echo form | payment_button
endif
endunless
echo form | payment_terms
-%}
{%- if section.settings.show_quantities -%}
{%- endif -%}
{%- if product.tags contains 'preorder' -%}
{{ 'product.preorder.description' | t }}
{%- endif -%}
{%- if section.settings.show_local_pickup -%}
{%- endif -%}
{%- endform -%}
cart-form.liquid (snippet within template)
------------------------------------------