Event Listener to trigger Javascript on certain button clicks
Bajet £20-250 GBP
- Freelancer
- Kerja
- JavaScript
- Event Listener to trigger Javascript on certain button clicks
I have a piece of javascript that disables the "NEXT" button on a checkout process on Wordpress using Bookly Pro, if the customer doesn't have all 5 products in their basket. (i.e we're selling "sessions" and if they have session 1, session 2, session 3 and session 4 in their basket the "NEXT" button remains disabled so they have to click "Continue shopping" until they have all 5 sessions...then the "NEXT" button is enabled.
here's the code:
const sessions = ['session 1', 'session 2', 'session 3']
const searchTarget = [login to view URL]('.bookly-cart-step');
const submitButton = [login to view URL]('.bookly-next-step')
if ([login to view URL]('session')) {
if ( => [login to view URL](session))) {
[login to view URL]("disabled", "")
} else {
[login to view URL]('disabled')
}
};
The help I need, is that I need the javascript to trigger each time the customer reaches the Basket stage of the checkout. So I understand I need assistance with an Event listener that can make it trigger at the right point of the checkout process, every time they return to the basket,
42 pekerja bebas membida secara purata £160 untuk pekerjaan ini
Hey I am a WordPress expert with years of experience in assisting clients to complete their requirements so feel free to contact so we can discuss more
Hi, I can fix your issues about javascript to trigger each time the customer reaches the Basket stage of the checkout as per all mentioned. Let me know when you here to discuss more in detailed about Job. I am havin Lagi
Hello I can definitely help you to disable next button using javascript until customer have five sessions in cart, I am an experienced full-stack web developer with over 4 years of experience and I have worked on var Lagi
i understood and i will write the code to trigger each time the user reaches the Basket stage of the checkout
Hi I AM READY TO START NOW I read through the job details carefully and I am absolutely sure that we can do the project very well. I have core expertise in PHP HTML WordPress JavaScript jQuery / Prototype I have 5 Lagi
Hi, I have been working as full-stack developers for over 7 years. I have read the description and I am ready to do this task for you. I'd be very happy to discuss this further and get started for you as soon as possi Lagi
Dear Sir/Madam, I am John a professional web developer and software engineer with over 8 years of hands-on experience developing applications with Java, Python, PHP and JavaScript. I have read your project descripti Lagi
Hello I am having good experience JavaScript. I can do this task. we can discuss on chat. payment will be after completion of work only. thanks for your time