Externalisation de la clé API Google dans la config du module PlanificationLivraison
This commit is contained in:
@@ -25,4 +25,7 @@
|
||||
<stability>beta</stability>
|
||||
<mandatory>0</mandatory>
|
||||
<hidden>0</hidden>
|
||||
<required>
|
||||
<module version="~1.0">PlanificationLivraison</module>
|
||||
</required>
|
||||
</module>
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBb07YA_unrh5w821I1xHxbeYb5KCF_WaM&callback=initMap&libraries=&v=weekly" async></script>
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key={module_config module='PlanificationLivraison' key='planiflivraison_googlemap_api_key' locale='en_US'}&callback=initMap&libraries=&v=weekly" async></script>
|
||||
<div id="map" class="locationMap"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -20,12 +20,6 @@
|
||||
<div class="col-sm-4"> </div>
|
||||
</div>
|
||||
|
||||
{if {cart attr='total_taxed_price_without_discount'} < $minimum}
|
||||
<!-- <div class="row">-->
|
||||
<!-- <div class="alert alert-info" style="margin-bottom:30px">{intl l="Message info minimum de commande" d="livraisonparsecteurs" minimum=$minimum delta=$minimum-{cart attr='total_taxed_price_without_discount'}}</div>-->
|
||||
<!-- </div>-->
|
||||
{/if}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<div id="select-pdr">
|
||||
@@ -75,6 +69,10 @@
|
||||
$('input[type=radio][delivery-mode]').click(function() {
|
||||
$('div[id^="select"]').not($('#select-' + $(this).attr('delivery-mode'))).slideUp();
|
||||
$('#select-' + $(this).attr('delivery-mode')).slideDown('fast');
|
||||
|
||||
if ($('[delivery-mode=pdr]').is(':checked')) {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
$("#form-cart-delivery").off('submit').submit(function(ev) {
|
||||
@@ -86,4 +84,12 @@
|
||||
}
|
||||
});
|
||||
|
||||
function loadScript() {
|
||||
var script = document.createElement('script');
|
||||
script.type = 'text/javascript';
|
||||
script.src = "https://maps.googleapis.com/maps/api/js?callback=mondialRelaySetup&key={config key='planiflivraison_googlemap_api_key'}";
|
||||
document.body.appendChild(script);
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user