Best practice for storing additional customer data in database #1033
-
Hi, I'm trying to figure out the best practice for storing additional customer data when using Runway for customers and orders. For instance, we want to keep a record of the phone number and company name for each customer. I've created a migration to add these columns to the customer table and included them in Runway's customer blueprint. When I input this data via the database or control panel, everything works fine, but I can't seem to store this information using the cart update route (with frontend form tag). Could I be doing something wrong? I've already whitelisted the phone and company fields for the customer in the config. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Forgot to mention, when searching for this I also found out that this related link in the docs isn't working anymore. |
Beta Was this translation helpful? Give feedback.
-
Can you share the code for the checkout template where customer enter their phone number & company name? |
Beta Was this translation helpful? Give feedback.
Ah now I see the fixed page in the documentation, I'm not using the array for customers inside the input field :)