How to direct to page after booking

  • rodfarrell
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #17688 by rodfarrell
How to direct to page after booking was created by rodfarrell
This is probably obvious if I new where to look (I have been using Events Booking for 2 hours now in total) but how do I direct a registrant to a particular page/url after they complete a registration?

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #17734 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to direct to page after booking
Hi

By default, Events Booking will redirect users to registration complete page (which displays thank you message and registration defail of the registration). So I think that page should not be changed. Could you please let me know what page you want to display to registrant after they completed their registration and why you have to do that so that I can guide you more detail?

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • rodfarrell
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #17754 by rodfarrell
Replied by rodfarrell on topic Re: How to direct to page after booking
I need to send the registrant to an information collection questionnaire that they need to complete before attending the event. The questionnaire is a Joomla Fabrik component/module. See www.smsfps.com.au/form

The Event Booking "thank you" page doesn't allow basic Joomla functionality like "loadposition" so it can only display basic text. This is why we need to be able to redirect to a landing page of our choice.
The following user(s) said Thank You: Cory S

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #17757 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to direct to page after booking
Ah, I see. In this case, you can follow the steps below to process the redirect :

1. Open the file components/com_eventbooking/views/complete/view.html.php

2. Find the line of code below :
Code:
$this->setLayout('default') ;

3. Add the following line of codes before that line :

$app = JFactory::getApplication();
$app->redirect('the_url_you_want');

(please replace the_url_you_want with the url of the page you want to redirect to) .

After that, it will work as expected .

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • rodfarrell
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #17767 by rodfarrell
Replied by rodfarrell on topic Re: How to direct to page after booking
Tuan you are a star.

BTW this booking system is brilliant and I've tried a few previously. You don't have a hotel reservation system as well do you? (doing a client quote tomorrow) :cheer:

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #17768 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to direct to page after booking
Thanks for your nice words about my product :). It is good but there are still many improvements which I am working on at the moment, so please keep an eye on my site to keep your site updated with latest versions.

If you have few minutes, please help me by giving the extension a 5 stars rating and a nice review at extensions.joomla.org/extensions/calenda...s-registration/13701 to support my development.

And we don't have a hotel reservation system. I think you can search it through the JED.

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc