mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-22 22:52:35 +03:00
Hide service price in modal views if equal to zero.
This commit is contained in:
parent
14bbd793bf
commit
ecfd5e830f
1 changed files with 4 additions and 4 deletions
|
@ -498,11 +498,11 @@ window.FrontendBook = window.FrontendBook || {};
|
|||
}
|
||||
|
||||
var selServiceId = $('#select-service').val();
|
||||
var servicePrice;
|
||||
var serviceCurrency;
|
||||
var servicePrice = '';
|
||||
var serviceCurrency = '';
|
||||
|
||||
$.each(GlobalVariables.availableServices, function (index, service) {
|
||||
if (service.id == selServiceId) {
|
||||
if (service.id == selServiceId && service.price != '' && service.price != null && service.price != '0.00' && service.price != '0,00') {
|
||||
servicePrice = '<br>' + service.price;
|
||||
serviceCurrency = service.currency;
|
||||
return false; // break loop
|
||||
|
@ -677,7 +677,7 @@ window.FrontendBook = window.FrontendBook || {};
|
|||
html += '[' + EALang.duration + ' ' + service.duration + ' ' + EALang.minutes + ']';
|
||||
}
|
||||
|
||||
if (service.price != '' && service.price != null) {
|
||||
if (service.price != '' && service.price != null && service.price != '0.00' && service.price != '0,00') {
|
||||
html += '[' + EALang.price + ' ' + service.price + ' ' + service.currency + ']';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue