Okay
  Public Ticket #2318565
Redirect after booking
Closed

Comments

  •  1
    Kevin Tracy started the conversation

    We have two service categories. One needs to go to to a checkout page after booking, the other needs to go to a Thank You page with further instructions. Is it possible to have the redirect for each category go to a unique URL after booking? 

    Thanks! Kevin

  • [deleted] replied

    Hello Kevin, 

    Unfortunately it isn't possible to redirect to different pages depending on the category/service chosen. 

    We have some JS hooks, that are triggered depending on the view:

    window.beforeAddToCalendarLoaded()
    window.beforeBookingLoaded()
    window.beforeSearchLoaded()
    window.beforeSearchFiltered()
    window.afterSearchFiltered()
    window.beforeConfirmedBooking()
    window.beforeCatalogLoaded()
    window.afterSelectCatalogCategory(object_category)
    window.beforeCatalogCategoryLoaded(object_category)
    window.beforeCatalogServiceLoaded(object_category, object_service)
    window.afterSearchActivateService(object_appointment, object_serviceActive)
    window.afterSearchGoToSecondStep(object_appointment, object_serviceActive)
    window.afterBookingSelectDateAndTime(object_appointment, object_serviceId, object_providerId, object_locationId)
    window.afterBookingSelectService(object_appointment, object_serviceId, object_providerId, object_locationId)
    window.beforeConfirmBookingLoaded(object_appointment, object_service, object_provider, object_location)
    window.afterConfirmBooking(object_appointment, object_service, object_provider, object_location)

     

    So, please check if you can achieve what you need if you use one of these hooks (afterConfirmBooking) but you would need to have 2 pages - one for each category - you would need to provide shortcodes on the pages with category IDs to separate them. 

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help,

  •  1
    Kevin Tracy replied

    Hi Mrija, 

    Thanks again. Is there any documentation for implementing the hooks you sent? It looks like that should solve the issue. We can create as many thank you pages as we have services. 

    Kevin

  • [deleted] replied

    Hello Kevin, 

    Apologies for replying late, we are not working on weekends.

    You are welcome. 

    You can use the hook, for example, beforeConfirmedBooking, that will be triggered when your customers confirm booking. You will of course set the redirect URL that you want in the script:

    <script>
    window.beforeConfirmedBooking = function()
    {
    window.location.href = "https://www.google.com";
    };
    </script>

    And you need to just place this script on the page where you have your Amelia shortode. 

    Hope this helps!

    If you have any further questions or concerns feel free to ask, 


  •  1
    Kevin Tracy replied

    Hi Marija, 

    Thanks, that's a big help. I am trying to register the plugin on our live site. It was running on the testing site, but that still seems to be the registered url, even though I deleted the license. Do you need to deactivate it on your systems? 

    The test site is https://test-upstageddenver.pantheonsite.io/

    The live site is https://upstageddenver.com/

    Thanks, Kevin 

  • [deleted] replied

    Hello Kevin, 

    You are welcome!

    We deactivated your license on the test site, so now you can activate it on the live one. 

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help,


  •   [deleted] replied privately
  •  1
    Kevin Tracy replied

    Awesome! Thanks for the update. 

    Kevin

  • [deleted] replied

    You are welcome, Kevin. 

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help,

  •  1
    Kevin Tracy replied

    I have another question. We have a service to de-stage a house. But all of the slots are showing as booked. How do we open those up? There should be room for 3 per day. I set the employee to have a max capacity of 6 per day. 

    Thanks, Kevin 

  •   Kevin Tracy replied privately
  •  1
    Kevin Tracy replied

    I changed the duration of the event and that opened the calendar back up. However, my client can't accommodate the times a customer might choose. Their deliver will depend on other projects and changes each day. Because of they they only want to show one opening from 8-5 or 0800-1700 per day, but still be able to book 2 stagings and 3 de-stagings. 

    Is there a way to set up events to accomplish this? 

  • [deleted] replied

    Hello Kevin, 

    The capacity of how many people can book one service at the same time is set in the services' min and max capacity. This is how many people can book at the same time the same appointment with one employee. Yes, you can set it up in the employees' assigned services tab as well but since you have only one employee you can set this up in the services directly. 

    But if you are trying to book two services at the same time with one employee, this can't be done in Amelia. Only one service can be booked with the employee at a time, and the capacity is for that service only, you can't mix the services to reach the capacity set. 

    Let me know if this helped or if I somehow misunderstood your question,