Personalized checkout and custom promotions with Shopify Scripts
Any one Know How?
Here is the Solution.
<div id="main" role="main">
<script src="//maps.googleapis.com/maps/api/js?key=YOUR API KEY&libraries=places&callback=PlaceAutocompleteSearch" async="" defer=""></script>
<script>
function PlaceAutocompleteSearch() {
var input = document.getElementById('search-address');
var autocomplete = new google.maps.places.Autocomplete(input);
}
</script>
<div class="rte">
<h2>Place Autocomplete Search</h2>
<input type="text" id="search-address" value="" class="pac-target-input" placeholder="Enter a location" autocomplete="off">
</div>
<style>
#search-address{
width:100%;
height: 30px;
}
</style>
</div>
<div id="main" role="main">
<script src="//maps.googleapis.com/maps/api/js?key=YOUR API KEY&libraries=places&callback=PlaceAutocompleteSearch" async="" defer=""></script>
<script>
function PlaceAutocompleteSearch() {
var input = document.getElementById('search-address');
var autocomplete = new google.maps.places.Autocomplete(input);
}
</script>
<div class="rte">
<h2>Place Autocomplete Search</h2>
<input type="text" id="search-address" value="" class="pac-target-input" placeholder="Enter a location" autocomplete="off">
</div>
</div>
User | RANK |
---|---|
4 | |
2 | |
2 | |
1 | |
1 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023