Skip to content

Quick bug fix? #18

@mosaiceye

Description

@mosaiceye

https://github.com/ClaudiuCreanga/magento2-store-locator-stockists-extension/blob/8bf464f7f380d74c7e0c3f4f9226eb2aa4774d26/src/view/frontend/web/js/limesharp_stockists.js#L106

Nice extension, I just noticed a quick bug @106:

BEFORE:
contentString += '<p class="ask-for-directions get-directions" data-directions="DRIVING">Get Directions</p>';

AFTER:
contentString += '<p class="ask-for-directions get-directions" data-directions="DRIVING"><a href="http://maps.google.com/maps?saddr=&daddr='+marker.getPosition().lat()+','+marker.getPosition().lng()+'" target="_blank">Get Directions</a></p>';

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions