Kapalı

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,

Beceriler: JavaScript, WordPress , PHP, HTML, jQuery / Prototype

Müşteri Hakkında:
( 0 değerlendirme ) United Kingdom

Proje NO: #33669484

Bu iş için 42 freelancer ortalamada £160 teklif veriyor

(396 Değerlendirme)
8.9
(382 Değerlendirme)
9.0
(698 Değerlendirme)
8.0
(129 Değerlendirme)
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 in 2 gün içinde
(540 Değerlendirme)
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 Daha Fazla

£350 GBP in 2 gün içinde
(163 Değerlendirme)
7.6
(111 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% GBP
(208 Değerlendirme)
7.5
(269 Değerlendirme)
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 in 4 gün içinde
(222 Değerlendirme)
7.5
(195 Değerlendirme)
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 Daha Fazla

£200 GBP in 3 gün içinde
(146 Değerlendirme)
7.1
(63 Değerlendirme)
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 Daha Fazla

£400 GBP in 5 gün içinde
(229 Değerlendirme)
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 Daha Fazla

£120 GBP in 2 gün içinde
(111 Değerlendirme)
7.2
(115 Değerlendirme)
7.0
(66 Değerlendirme)
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 Daha Fazla

£135 GBP in 7 gün içinde
(141 Değerlendirme)
6.8
(95 Değerlendirme)
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 in 5 gün içinde
(52 Değerlendirme)
6.3