You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am wondering how to add a custom field/string/attribute/ or whatever to my storefront and admin. A simple custom string the customer inputs and it will show it along with their order or customer information.
I started down the "extend an entity" path first but it is a bit overwhelming, I added a custom attribute to the order table but could not figure out how to set it on the front end side. I think the submit an order button creates the order based off the cart. So I think I was mistaken in doing this, I should have added it to the cart table, probably. But then I started to see that there is a "meta data" field, I should be able to add this string to the metadata of a customer correct?
But I can't figure this out either. I set an input field on my frontend but get errors trying to set it as my cart's metadata. Some code snippets:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I am wondering how to add a custom field/string/attribute/ or whatever to my storefront and admin. A simple custom string the customer inputs and it will show it along with their order or customer information.
I started down the "extend an entity" path first but it is a bit overwhelming, I added a custom attribute to the order table but could not figure out how to set it on the front end side. I think the submit an order button creates the order based off the cart. So I think I was mistaken in doing this, I should have added it to the cart table, probably. But then I started to see that there is a "meta data" field, I should be able to add this string to the metadata of a customer correct?
But I can't figure this out either. I set an input field on my frontend but get errors trying to set it as my cart's metadata. Some code snippets:
How exactly is this done? TYIA
Beta Was this translation helpful? Give feedback.
All reactions