Please post all pre-sales questions of all products on this forum

Event params on payment plugin

  • Fabiano
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 11 months ago - 8 years 11 months ago #87830 by Fabiano
Event params on payment plugin was created by Fabiano
How can I get the event params, including custom event fields, in payment plugin?

Thank you.


(this topic is for Event Booking General Discussion.. sorry!)
Last edit: 8 years 11 months ago by Fabiano.

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

More
8 years 11 months ago #87845 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event params on payment plugin
Hi Fabiano

We don't have support for it out of the box. However, I think you can write some lines of code to get the necessary data:
Code:
$db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select('*') ->from('#__eb_events') ->where('id = '. $row->event_id); $db->setQuery($query); $event = $db->loadObject(); EventbookingHelperData::prepareCustomFieldsData(array($event));

After that, $event object should contains all the data you want

Tuan

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

Moderators: Tuan Pham NgocGiang Dinh TruongDang Thuc Dam