Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I've been trying to manually add a custom field so that customers can input text for a personalisation.
I'm a complete newbie. Not even sure if you are supposed to mess around like this.
I have added a new template and have created a main-custom-product.liquid where I have added the following code:
<div>
<label for="custom-personalistion">Enter Personalisation</label>
<input type="text" id="custom-personalistion" form="{{product_form_id}}" name="properties[Personalisation]"/>
</div>
I can see the new field on my storefront but if I try to use it I get a 'cannot find variant' error.
I can see in my theme (Craft) that the new variant is not within the variant block.
I should state that I am following a You Tube video on how to do this and the code around my 'variant-picker' in the main-custom-product.liquid file is empty in comparison to the You Tube video. I'm not sure if this could be the reason?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024