Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Custom fields on cart, checkout and order

Custom fields on cart, checkout and order

msarmiento
Shopify Partner
2 0 0

Hello, some years ago I worked for a customer and developed a custom online store using Nextjs. I also built a custom solution for the admin panel and the backend. It is actually a gift store in which customers order gifts for themselves or for another person. There were some custom fields needed to place the order which are previously filled on the checkout: delivery date (this one is important because users need to select a date in which the other person will receive the gift), receiver name, receiver phone, some custom text for a dedication card, shipping fee, distance, etc. 

Another custom functionality is that the shipping fee is calculated based on the distance of the customer and the physical store. The shipping fee is calculated using an external Google API called distance matrix API in which given 2 points calculates the distance and once i get the distance I get the cost based on the distance provided

 

Now we are migrating the online store to use the Storefront API and I would like to know how to implement that custom functionality and custom fields.

 

I was thinking to add custom data / metaobjects to my Cart but i also need the fields to be visible on my checkout and once the order is received show the fields on the shopify admin

 

Is it possible to recreate my custom functionality using Shopify and the Storefront API?

 

msarmiento_0-1712271680287.png

 

 

Reply 1 (1)

jamalsoueidan
Shopify Partner
66 3 8

You can use the same methods?