Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address custom fields not saving in order #3439

Open
MaartenWessels opened this issue Mar 25, 2025 · 0 comments
Open

Address custom fields not saving in order #3439

MaartenWessels opened this issue Mar 25, 2025 · 0 comments
Labels
type: bug 🐛 Something isn't working

Comments

@MaartenWessels
Copy link

MaartenWessels commented Mar 25, 2025

I've encountered an issue while adding a custom field to the Address entity. The custom field is displayed when adding an address to a customer at the customer level. However, when adding an address to an order (shipping- or billing address), the custom field is not visible unless I select an existing address from the customer. Even then, the custom field is not stored in the database for the billingAddress or shippingAddress.

To Reproduce
my-shop example project
Steps to reproduce the behavior:

  1. Clean install of a vendure application with 'npx @vendure/create my-shop' with postgres database and sample data
  2. add a custom field to the Address entity with the type string and with nullable true and set database synchronize to true.
  3. npm run dev
  4. navigate to 'orders' > 'create draft order'
  5. add billing- or shippingaddress to draft order
    Expected behavior
    The possibility to add a billing- and/or shippingaddress to an order with the custom field(s) of the address entity.

Environment (please complete the following information):

  • @vendure/core version: 3.1.7
  • Nodejs version: v20.18.3
  • Database (mysql/postgres etc): postgres

Additional context
When adding a new customer, I can add a address to the customer and set the custom field(s) and set it as default shipping and billing address. But when I add the customer to the order, the custom field is not added with the default addresses.

@MaartenWessels MaartenWessels added the type: bug 🐛 Something isn't working label Mar 25, 2025
@michaelbromley michaelbromley moved this to 📦 Backlog in Vendure OS Roadmap Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
Status: 📦 Backlog
Development

No branches or pull requests

1 participant