Skip to content

Enhance pickup fields#27

Open
JustShah wants to merge 4 commits into
1-0-feature-branchfrom
enhance-pickup-fields
Open

Enhance pickup fields#27
JustShah wants to merge 4 commits into
1-0-feature-branchfrom
enhance-pickup-fields

Conversation

@JustShah

@JustShah JustShah commented Mar 10, 2025

Copy link
Copy Markdown

This pull request includes several improvements and updates related to the pickup fields in the delivery step view and the conditional creation of pickup details in the shipment decorator.

Changes Included:

  1. Update Shipment Decorator to Conditionally Create Pickup Details:

    • Modified the shipment decorator to conditionally create pickup details only if pickup_day is present in customer metadata.
    • Updated the order's customer metadata to include pickup details only if they are present.
  2. Enhance Pickup Fields Layout in Delivery Step View:

    • Improved the layout of pickup fields in the delivery step view.
    • Added a legend for better section identification.
    • Updated labels and select inputs to use localized strings.
  3. Add Localization for Pickup Fields:

    • Added localization strings for pickup day, pickup time, next 5 business days, and available time slots.
    • Updated the English locale file with the new strings.

These changes enhance the user experience by improving the layout and localization of the pickup fields, and ensure that pickup details are only created when necessary, based on the presence of pickup_day in customer metadata.

image

- Modified the shipment decorator to conditionally create pickup details only if 'pickup_day' is present in customer metadata.
- Updated the order's customer metadata to include pickup details only if they are present.
@JustShah
JustShah force-pushed the enhance-pickup-fields branch from c42afe9 to abf2d14 Compare March 10, 2025 09:08
@fthobe

fthobe commented Mar 10, 2025

Copy link
Copy Markdown

ok, perfect.
@JustShah Spacing between "Schedule Pickup" and pick up form seems wrong, please use the same spacing throughout the page and make it identical to the spacings and layout above (you might need to insert the horizontal line for that.

@JustShah

Copy link
Copy Markdown
Author

@fthobe Can you please help me understand the spacing issue? I double checked the code and found that the spacing between Shipping Method and Schedule Pickup is the same.

Also, we want to add a third horizontal line (a new line between Shipping Method and Schedule Pickup).

@JustShah
JustShah force-pushed the enhance-pickup-fields branch from abf2d14 to 4983a1d Compare March 10, 2025 10:35
- Improved the layout of pickup fields in the delivery step view.
- Added a legend for better section identification.
- Updated labels and select inputs to use localized strings.
- Added localization strings for pickup day, pickup time, next 5 business days, and available time slots.
@JustShah
JustShah force-pushed the enhance-pickup-fields branch from 4983a1d to 6bd9652 Compare March 10, 2025 13:11
@fthobe

fthobe commented Mar 10, 2025

Copy link
Copy Markdown

The one under shipping method disappeared, please find the reference design below:
Screenshot 2025-03-10 at 14 12 22

@JustShah

Copy link
Copy Markdown
Author

image

@fthobe

fthobe commented Mar 10, 2025

Copy link
Copy Markdown

ok update the PR screenshot

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

Successfully merging this pull request may close these issues.

2 participants