Bookings Timetable Book Now Buttons- Bane of my existence

Hey Wixers!

I’m trying to trouble shoot a few bugs that popped up out of nowhere on me.

  1. Book now button stopped working for only our pole classes (the other class categories work). (wth) Anyone have any ideas on how to troubleshoot this?

  2. Anyone know how to set up the book now for a “Series” instead of just a “class”?
    Here’s the culprit: https://www.flyclub.studio/class-schedule

SOS,
Caitlin
p.s I’m not a developer, completely self taught and struggling.

Are you using Wix Bookings app?
https://support.wix.com/en/wix-bookings/setting-up-wix-bookings

Or have you done the bookings through Wix Code?
https://support.wix.com/en/corvid-by-wix/wix-bookings-with-corvid

As you seem to have nothing connected to that Pole session button, whereas everything else seems to be connected.

Hi givemeawhisky!
Thank you for taking a look. I really appreciate it. I’m doing bookings through wix code ( https://support.wix.com/en/article/corvid-creating-a-bookings-timetable ). The super weird thing is that the pole classes should be connected if the others are. It should be pulling from all classes and series.
Here’s a screenshot of the logic behind the button. Should work for all class types, right?

Yes, having a read of that tutorial myself, those book buttons have a general code statement that runs and applies to all of them and not as separate buttons within the code.

So, in theory, they should all work if everything is set up correctly, so it seems a bit odd that just the one button for the pole classes doesn’t seem to work whilst all the rest of the book buttons do.

I would go back through your code and thoroughly check it and double check it, especially around the pole classes data in your dataset and around step 6 where you get all classes and on step 13 where you add all the button options etc., just to make sure that you haven’t missed out something in your dataset or you haven’t got the pole classes down as class type or you’ve missed something out in the code from the tutorial that should have been in there.

If it was something simple like your book button id being called something slightly different to what you have in your code, then that should have been easy to spot as it would only be affecting that one button and not moving around randomly to wherever your pole classes fall.

Sp to me it as it returns a no error on just your pole options, it would indicate that there is an error in your pole classes somewhere, like I’ve said above it might just be some simple error in the code or you don’t have the pole sessions in your dataset set as class type, mostly always a simple solution like that!

You might find it easier too, to copy all your page code into something like Microsoft Word or a text file for example and then have that up on screen along with the tutorial page, so that you can simply match and read the code as you scroll down the pages.

I’ve often done that on logner codes, so I have one side of my screen with the tutorial window code and the other half of my screen with my own code file, so that I can simply double check code without having to go back and forth between the two etc.

Anyways, see what you can spot and come back if you still don’t have any luck, fingers crossed though.

:crossed_fingers:

Well, I gotta admit I’m a bit confused. I opened up your site in the Editor and ran it in Preview mode. I only get one item returned, and it has a really crazy _id:


Something’s happening in your code - maybe in populateServicesSlots() function - that’s resulting in an _id that is invalid. From what I can see, the Repeater isn’t being populated properly since it doesn’t have valid entries in the data.

Have you looked at the Bookings/Timetable example? It shows how to implement the code detailed in the tutorial.

That’s what I built it off (but I’m self taught so probably missed something). I have no idea why this was working for a month and then stopped, so that crazy ID is a mystery. I’ll check back through the code like you guys suggested and see what I can find. Stay tuned lol.

Thank you for your help!!

So it looks like I need to use the alternate service ID in order to be able to post the class data from the database (otherwise it doesn’t render). Example: https://www.flyclub.studio/copy-2-of-schedule
So perhaps the book now button also needs to call the alt service id? Is that likely to fix it?

Do you guys know if wix released any updates in the past week? Trying to figure out why this stopped working.

Thank you for your insight!