PointRetrait : On avance encore sur le frontOffice

This commit is contained in:
2021-03-06 09:16:32 +01:00
parent 0bbab6b568
commit 9643b76aed
5 changed files with 55 additions and 33 deletions

View File

@@ -29,15 +29,16 @@
</div> </div>
</div> </div>
{if {cart attr='total_taxed_price_without_discount'} < $minimum}
<div class="row">
<div class="alert alert-info" style="margin:10px 0">{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="row">
<div class="col-md-12"> <div class="col-md-12">
<div id="select-lps"> <div id="select-lps">
{if {cart attr='total_taxed_price_without_discount'} < $minimum}
<div class="row">
<div class="alert alert-info" style="margin:10px 0">{intl l="Message info minimum de commande" d="livraisonparsecteurs" minimum=$minimum delta=$minimum-{cart attr='total_taxed_price_without_discount'}}</div>
</div>
{/if}
{form name="thelia.order.delivery"} {form name="thelia.order.delivery"}
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-condensed"> <table class="table table-striped table-condensed">

View File

@@ -17,6 +17,7 @@ return array(
'Do you really want to remove this schedule entry ?' => 'Voulez-vous réellement supprimer ce créneau de retrait ?', 'Do you really want to remove this schedule entry ?' => 'Voulez-vous réellement supprimer ce créneau de retrait ?',
'Edit a place' => 'Modifier un lieu de retrait', 'Edit a place' => 'Modifier un lieu de retrait',
'Edit this withdrawal day' => 'Modifier ce jour de retrait', 'Edit this withdrawal day' => 'Modifier ce jour de retrait',
'Free' => 'Gratuit',
'Location set' => 'Coordonnées GPS présentes ?', 'Location set' => 'Coordonnées GPS présentes ?',
'Main' => 'Généralités', 'Main' => 'Généralités',
'Message no location' => 'Ce point de retrait ne possède pas de coordonnées GPS : pour vos clients, il est conseillé de géolocaliser l\'adresse.', 'Message no location' => 'Ce point de retrait ne possède pas de coordonnées GPS : pour vos clients, il est conseillé de géolocaliser l\'adresse.',

View File

@@ -14,42 +14,29 @@
.custom-map-control-button:hover { .custom-map-control-button:hover {
background: #ebebeb; background: #ebebeb;
} }
.locationMap { .locationMap {
height:450px; height:450px;
width:100%; width:100%;
} }
.legende {
margin-top: 25px;
text-align: center;
font-style: italic;
}
.pin-pdr { tr.ligne-pdr > td {
height: 25px;
margin-left: 12px;
}
tr .ligne > td {
border: 1px solid gray !important; border: 1px solid gray !important;
} }
.ligne-pdr > td {
.ligne > td {
padding: 5px !important; padding: 5px !important;
} }
.creneau > td { .creneau > td {
text-align: left !important; text-align: left !important;
font-size: 1.2rem; font-size: 1.2rem;
} }
.titre { div.titre-pdr {
font-size: 1.6rem; font-size: 1.6rem;
color: red; color: #e74c3c;
font-weight: 600; font-weight: 600;
margin-bottom: 10px;
} }
.adresse { .adresse {
font-size: 1.4rem; font-size: 1.4rem;
} }
@@ -57,9 +44,22 @@ tr .ligne > td {
.table-main { .table-main {
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
.table-schedule { .table-schedule {
background-color: #aeaeae !important; background-color: #f5f5f5 !important;
color: white !important; border-color: white !important;
border-color: #aeaeae !important; }
}
.img-pin {
width: 30px;
}
span.pin-number {
color: black !important;
position: relative;
left: -19px;
top: -2px;
z-index: 50;
}
.additional-price {
color: #e74c3c;
font-weight: 600;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@@ -26,9 +26,9 @@
<div class="table-responsive" style="border: 1px solid gray"> <div class="table-responsive" style="border: 1px solid gray">
<table class="table table-condensed table-main"> <table class="table table-condensed table-main">
{loop type="pdr_places" name="places-loop" active=true order="city"} {loop type="pdr_places" name="places-loop" active=true order="city"}
<tr class="ligne"> <tr class="ligne-pdr">
<td> <td>
<span class="titre">({$ID}) {$TITLE}</span><br> <div class="titre-pdr"><img src="{image file='assets/img/pin.png' source='PointRetrait'}" class="img-pin"><span class="pin-number">{$ID}</span>{$TITLE}</div>
<span class="adresse">{$ADDRESS1}</span><br> <span class="adresse">{$ADDRESS1}</span><br>
<span class="adresse">{$ZIPCODE} {$CITY}</span><br> <span class="adresse">{$ZIPCODE} {$CITY}</span><br>
<table class="table table-schedule"> <table class="table table-schedule">
@@ -39,6 +39,13 @@
</tr> </tr>
{/loop} {/loop}
</table> </table>
<div class="price">
{if $PRICE > 0}
{format_number number=$PRICE}
{else}
{intl l="Free" d="pointretrait"}
{/if}
</div>
</td> </td>
</tr> </tr>
{/loop} {/loop}
@@ -104,15 +111,26 @@
} }
function initMap() { function initMap() {
const LIMITES = {
north: 50.85043724044059,
east: 2.6869845409159923,
south: 50.616717259788544,
west: 1.8122213465336767,
};
var opt = { var opt = {
center: new google.maps.LatLng($("#map-center-lat").val(), $("#map-center-lon").val()), center: new google.maps.LatLng($("#map-center-lat").val(), $("#map-center-lon").val()),
zoom: 12, zoom: 12,
streetViewControl: false, streetViewControl: false,
mapTypeControl: false mapTypeControl: false,
disableDefaultUI: true,
restriction: {
latLngBounds: LIMITES,
strictBounds: false,
}
}; };
Data.map = new google.maps.Map(document.getElementById('pdr_map'), opt); Data.map = new google.maps.Map(document.getElementById('pdr_map'), opt);
Data.geocoder = new google.maps.Geocoder();
displayPins(); displayPins();
} }
@@ -129,8 +147,10 @@
map: Data.map map: Data.map
}); });
}); });
} }
/*********************************************************/ /*********************************************************/
var Data = { var Data = {