Repository navigation
Release 0.1.0 - #7
Merged
Merged
Conversation
Scaffold the module with the shared tooling and ship the active pickup locations of the current store view to window.checkoutConfig.ppStorePickup, including the address lines the checkout components display. Closes #1
#2) While a pickup rate is selected the shipping step fills the address from the location and hides it: the inline form keeps first name, last name and phone, and customers with saved addresses get a small contact form instead of the address list. Switching back restores the typed values or re-selects the saved address. Billing can no longer be the same as shipping, so the payment step asks for it. Closes #2
The typed address was kept in its own localStorage namespace and never cleared. It now sits in an extra key of the checkout-data section, which Magento clears on order placement and on login/logout; switching back to delivery still clears it at once, and the reload recovery keeps working.
The marked location address posts save_in_address_book 0 (core sets 1 for customers on the inline form), and the location match compares trimmed strings so a numeric postcode or extra spaces still match.
Luma refills the form from its checkout data, which holds the location while pickup is applied. The snapshot now also stores the location address that was written, so the typed values come back on page load even when that location has been deactivated in the meantime; without a snapshot a guest's form is cleared of an active location's address. The form callbacks also wait for the street lines to exist.
Like Luma's own address data, the typed-address snapshot is keyed by the store code, so store views sharing one base URL never apply each other's snapshot. Clearing works as before; the key is dropped once empty.
Opening hours and notes use a class from the module stylesheet instead of inline style attributes, so they render under a strict CSP.
Require magento/module-customer and magento/module-ui; drop magento/module-quote, which nothing in src/ uses.
The module needs the native Luma checkout rendered by a Luma-based theme on the store view; the Hyvä Checkout setting alone is not enough. The reload clearing covers guests and customers without saved addresses, and the snapshot is kept per store view.
The core module is on Packagist now, so the dev stability flag goes and the README no longer calls the module unreleased.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First release, 0.1.0. Requires
pixelperfectat/magento2-module-store-pickup^0.1, now on Packagist. The changelog lists what the release does.