Shopify themes, liquid, logos, and UX
Hi all,
I'd like to add date of birth to the cart to capture this information for birthday marketing.
I've been told I may need to edit some code to add this in? Could someone please assist?
What code and where?
Any help is much appreciated.
Step1: look for the cart.liquid file under Sections or Templates. The file location might vary depending on your theme. Sometimes, it could be named cart-template.liquid or similar.
Step2: Find the place in the code where the cart form starts, usually within a <form> tag.
Step3: Add the following code to include a Date of Birth field:
<div class="cart__birthday">
<label for="birthday">Date of Birth:</label>
<input type="date" name="properties[birthday]" id="birthday">
</div>
Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!
Thankyou for your reply. I cant seem to find what page is correct. I've tried updated a few of them with cart.liquid, Cart-template.liquid or Ajax-cart.liquid. Nothing seems to modify it when I add that code in.
Can you assist in inspecting this page?
https://www.discconnection.com.au/cart
I can't find it. I can try to help you add this feature. So I need to access your store as a collaborator if possible.
Sure, how do we go about doing that?
By 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, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024