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

feat: add new address button to customers #156

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

webdevNYC
Copy link

Hi, I work with DDSGadget on their CommerceLayer App. This new feature allows users to create a new address in the Customer app.

What I did

Currently, the Customer App only shows existing addresses and allows an edit to the address. But, it does not allow the creation of a new address. I implemented the call for the overlay "openAddressOverlay()" in the customer address, using the same logic as that found in the Orders Address to allow the user to add an address for the customer.

How to test

  1. Go to the App Router.
  2. Select the Customer App.
  3. You can choose between two options:
    • Choose a User with no address.
    • Choose a User with an address.
  4. In the Address tab, you will find the button labeled "+Add New Address."
  5. Complete the form and submit it.

Note: The validation is already in place; I just added the call.

Checklist

  • [ X ] Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests).
  • [ X ] Make sure to add/update documentation regarding your changes.
  • [ X ] You are NOT deprecating/removing a feature.

Copy link

netlify bot commented Nov 18, 2024

Deploy Preview for commercelayer-dashboard-apps ready!

Name Link
🔨 Latest commit 4e64777
🔍 Latest deploy log https://app.netlify.com/sites/commercelayer-dashboard-apps/deploys/673b48ec12d1b8000850edc4
😎 Deploy Preview https://deploy-preview-156--commercelayer-dashboard-apps.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@marcomontalbano marcomontalbano added the enhancement New feature or request label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants