Pllease help!
So, as you know, WIX services will only allow me to choose EITHER pay deposit online and rest in person, OR pay full amount online for each service.
Problem is, I need customers to be able to pay a deposit (using Stripe), OR choose to pay the full amount online (using Klarna). As at the moment, if i turn Klarna ‘on’, it understandably tries to pull the full amount which is the despoit only.
I have the following code, but it doesnt work on the live site. Klara STILL comes up even if the service is set to ‘pay deposit’ online, when the code is meant to ensure Klarna only comes up when the service is set to pay full online.
If anyone know what im missing here, i would be ever so grateful. \this issue has been bugging me for over a year.
thanks in advance, here is the code (that is put in ‘custom code’ and set to the ‘booking form AND checkout’ pages
< script > function showKlarna (service, paymentPreference) { if (service === “pay full amount online” && paymentPreference === “entire amount” ) { document .getElementById( “klarna-button” ).style.display = “block” ; } else { document .getElementById( “klarna-button” ).style.display = “none” ; } } document .addEventListener( “DOMContentLoaded” , function () { showKlarna( document .getElementById( “service” ).value, document .getElementById( “paymentPreference” ).value); }); </ script >