×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Booking form plugin hook

Booking form plugin hook 8 years 8 months ago #31861

  • Outdated-unused
  • Outdated-unused's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
i plan to extend the Matukio booking form by a custom booking field, a checkbox (Register for Newsletter). This part is done and no problem.
However: If said box is checked, I want to register the email/name of the person with the Joomla Newsletter component JNews.

My question is: What's the best way to access the booking form and check whether the checkbox was checked? Does the booking form provide any plugin hook where i can insert a dedicated data handler for this? Or do i need to modify the core Matukio booking form handler code?

Booking form plugin hook 8 years 8 months ago #31876

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi,

we have a similar plugin for CCNewsletter, you can look at it as a starting point.

We have a Plugin event after a booking is saved:
/**
	 * @param   string  $context  - the context we are at
	 * @param   object  $booking  - the booking object
	 * @param   object  $event    - the event object
	 *
	 * @return boolean true
	 */
	public function onAfterBookingSave($context, $booking, $event)

Kind regards,
Yves

P.S.: Weiter unten ist auch ein deutschsprachiges Forum.
  • Page:
  • 1
Time to create page: 0.130 seconds