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

Enable store selection on map using markers #17

Merged

Conversation

Chacalbis
Copy link

@Chacalbis Chacalbis commented Apr 26, 2019

This pull request is our 'simple' answer to an identified UX default.
Referencing this issue : (#15)

When choosing a store in shipping step, we can't select it using markers on map. It appears to be quite confusing for users, because details are displayed but retailerId not set as current shop.

A solution could be to set this.currentRetailerId(markerData.id); on click on marker.
Smile_StoreDelivery/js/view/checkout/shipping/store-map extends Smile_StoreLocator/js/retailer/store-map which extends Smile_Map/js/map which defines loadMarkers() method.
Considering smile-map is replaced in our custom module's requirejs-config in order to develop extra functionnalities about markers and stock, we were forced to redeclare loadMarkers() here...

It would be nice to hear your thoughts on this.

@Fdec Fdec merged commit fd2e156 into Smile-SA:master Apr 30, 2019
@Chacalbis Chacalbis deleted the enable-store-selection-via-marker branch May 29, 2019 13:53
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.

3 participants