import { bookServiceWithMember } from 'backend/bookService'; import { getPricingPlan } from 'backend/pricingPlan'; $w.onReady(function () { $w('#bookButton').onClick(async () => { const memberId = $w('#memberIdInput').value; const serviceId = $w('#serviceIdInput').value; const otherMemberId = $w('#otherMemberIdInput').value; const planId = await getPricingPlan(memberId); if (planId) { const bookingResult = await bookServiceWithMember(memberId, serviceId, otherMemberId, planId); if (bookingResult.success) { console.log('Service booked successfully with another member'); } else { console.log('Failed to book service:', bookingResult.error); } } else { console.log('No valid pricing plan found for this member'); } }); });
top of page

Template Services

Book Online: Bookings

Customer Service Hours

Monday-Friday at 10am-5pm

©2021 by BurkesPowerCleaning. Proudly created with Wix.com

bottom of page