Is it possible to remove the (price)decimals ?

105 views
Skip to first unread message

Glen Noordwijk

unread,
May 25, 2020, 8:47:12 AM5/25/20
to Easy!Appointments - Support Group
Hello,

I just started using easy appointments. A  awsome plugin.
Just 1 thing I want to solve. In Thai currency there are no decimals. 
Is there a (CSS)-code available to change the format of the price-cells?

Regards,

Glenno

Ahmad Al-Ani

unread,
May 25, 2020, 9:40:26 AM5/25/20
to Easy!Appointments - Support Group
edit /assets/js/frontend_book.js

at line 663, add red text

html += '[' + EALang.price + ' ' + service.price.split(".")[0]+ ' ' + service.currency + ']';

Glen Noordwijk

unread,
May 25, 2020, 11:28:42 AM5/25/20
to Easy!Appointments - Support Group
Dear Ahmad,

Thank you for your quick reply.

The path you gave /assets/js/frontend_book.js does not exist in the free version.

Is there another place I can look for?

Regards


Ahmad Al-Ani

unread,
May 25, 2020, 12:26:49 PM5/25/20
to Easy!Appointments - Support Group
Try in /js/frontend.js

add above red text after every "element.price" in below text (not tested)

if (ea_settings['currency.before'] == '1') {
$option.text(element.name + ' - ' + next_element.data('currency') + element.price);
} else {
$option.text(element.name + ' - ' + element.price + next_element.data('currency'));
}

$option.data('price', element.price);
}

Reply all
Reply to author
Forward
0 new messages