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

Find-or-Create address in SP when customer saves address without SP Address ID #73

Open
chrismshea opened this issue Jan 2, 2024 · 0 comments

Comments

@chrismshea
Copy link
Contributor

Issue

When a customer saves an address that does not have an SP Address Id it will not be created in SP

  • Address could have been created before SP Cartridge Installed/Enabled
  • Address could have been created in Business Manager by customer service at any time.

We do have the MigrationsSP job which can be used to generate customers/addresses/payment profiles after SP Cartridge is installed/enabled. This does not help the one-off addresses created in BM afterward. Though the job could be scheduled. Addresses created on frontend are created in SP at that time.

Expected

When a customer saves an address that does not have an SP Address Id it should be linked to an existing address in SP or a new one created.

Steps to Reproduce

In Business Manager

  • Navigate to Merchant Tools > Customers > Customers
  • Click New to create a new customer
  • Complete the form to create the new customer and click Apply
  • Now click on the addresses tab, and create a new address.

On Frontend

  • Login as the newly created customer
  • Scroll down and click on View in the Address Book section
  • Click Edit for the newly created address
  • Make a change to the address, and click Save

Result

The customer will be created in SP, but there will be no addresses for the customer in SP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant