Ditutup

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](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,

Kemahiran: JavaScript, Wordpress, PHP, HTML, jQuery / Prototaip

Tentang Klien:
( 0 ulasan ) United Kingdom

ID Projek: #33669484

42 pekerja bebas membida secara purata £160 untuk pekerjaan ini

(396 Ulasan)
8.9
(382 Ulasan)
9.0
(698 Ulasan)
8.0
(129 Ulasan)
8.1
aftabyounas

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

£70 GBP dalam 2 hari
(540 Ulasan)
7.8
AltiuseCreaton

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

£350 GBP dalam 2 hari
(163 Ulasan)
7.6
(111 Ulasan)
7.4
fenilrana129

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

£100 GBP dalam sehari
(208 Ulasan)
7.5
(269 Ulasan)
7.6
letshappy

i understood and i will write the code to trigger each time the user reaches the Basket stage of the checkout

£170 GBP dalam 4 hari
(222 Ulasan)
7.5
(195 Ulasan)
7.7
vashishtrupinder

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

£200 GBP dalam 3 hari
(146 Ulasan)
7.1
(63 Ulasan)
7.2
michealperfect

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

£400 GBP dalam 5 hari
(229 Ulasan)
7.3
johnofagbe

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

£120 GBP dalam 2 hari
(111 Ulasan)
7.2
(115 Ulasan)
7.0
(66 Ulasan)
6.7
BitLabs

Hello, I have gone through your outsourced requirements " Event Listener to trigger Javascript on certain button clicks " and have analyzed that I have right skills ( PHP JavaScript WordPress HTML jQuery / Protot Lagi

£135 GBP dalam 7 hari
(141 Ulasan)
6.8
(95 Ulasan)
6.3
srdeveloper8988

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

£222.22 GBP dalam 5 hari
(52 Ulasan)
6.3