New Shopify Certification now available: Liquid Storefronts for Theme Developers

Add Birthday to customer accounts

LewisSutton
Excursionist
27 1 8

Hi, I have the flits app installed which customers can update their Birthday (see attached screenshot) I plan to collect this information to provide Birthday discounts. However, customers have to input their birthday through the account. I would like them to do this upon signing up to the site through the sign up form. What would be the best way to automate this and store the data on their account. Would I be better installing another app, or adding fields to the sign up form then using code to store the data they input onto their account? 

 

Thanks,

LewisSutton_0-1667586690040.png

 

Reply 1 (1)
PaulNewton
Shopify Partner
5931 537 1241

This depends on what data the editing app is using to store the customer DOB info.

If it's in a private metafield dedicated to that app then you need to have the app integrate with the sign up form; some apps have documented apis for this.

 

If it's using a tag to store DOB you can add more fields to the account in the sign up form 

https://community.shopify.com/c/technical-q-a/add-a-tag-to-a-customer-account-sign-up-form/td-p/1545... 

The "documented" way for more information is using the customer note 

https://shopify.dev/themes/customer-engagement/additional-customer-information 

 

If it's using metafields collect the DOB as tags and use an automation to update the metafields based on a tag containing "DOB_" or some other convention.

Shopify-flow app should be able to do this part.

https://help.shopify.com/en/manual/shopify-flow/reference/triggers/customer-account-enabled 

https://help.shopify.com/en/manual/shopify-flow/reference/actions/update-customer-metafield 

Or a more in depth scriptable automation app like use mechanic

https://tasks.mechanic.dev/demonstration-write-to-a-customer-metafield 

 

 

If you need this explored you can contact me directly. Contact info in signature please provide context: post url, store url, problem details.

 

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org