Integration with Easysocial Events

A) If you are using JTIcketing 2.0. Install the package directly

1) Open yoursite.com/administrator

2) Set Up Payment plugins Open Extension=>Plugin Manager=>Select Type as 'Payment'=> Now Enable and configure Payment Gateways

3) Open components=>com_jticketing=>options=>Select integration as Easysocial and save.

4) Creating menus

  • Open Menu Manager=>Your Menu Type=>Click on select=>Click on JTicketing and create following menus.
  • Open Menu Manager=>Your Menu Type=>Click on select=>Click on TJvendor and create Reports menus.

    Vendors Menu

  •     All Orders
  •     Attendee List
  •     Ticket Sales
  •     Reports(TJVendor Menu)

    Buyers Menu:-

  •     Calendar
  •     My Orders
  •     My Ticket bought

    Create menus in 'easysocial'  for Buyers

  •     For All events
  •     Create event

5) Open components=>Easysocial=>Click on Application

Search for below applications

  •     Event — Create Ticket Types
  •     User — Events
  •     User — My Ticket Purchases

Enable and Configure these APPs.

6) Open Backend=>easysocial=>Events=>Categories=>Open any category=>Click on custom field=>You can select custom field as  'Create Ticket Types'.  Save above settings
For EasySocial 2.1, Open Backend=>easysocial=>Custom fields->workflow->Categories(For example - General)->Click on  “+”->Standard->Create ticket type

7) Now create a future event from easysocial in above category you can see create ticket type option

8) Social integrations configuration: Set the configuration to easysocial to enable auto filling of billing form. 

9) The events created in EasySocial have a JTicketing integration for creating paid events. The ticket types created for that event makes the EasySocial event paid. The Buy module enables the users to buy tickets for the events. The ticket options are displayed on the module from which the users can choose and buy tickets for the event.

  • Open Extensions=>Click on Modules=>Open JTicketing Buy Tickets module=>Assign menu's=>Set position as per your template=>Publish it.
  • This should show a buy module on the easysocial event with a BUY button for the user's to buy tickets.

10) Activity stream configuration: Enable the activity stream integration by setting it to easysocial. This will trigger the activities when an event is created or when a ticket is bought or when check-in to the event is done.

10) Billing information mapping: Enter the mapping elements so as to autofill the billing information. This has to be done to map the fields.

11) Important Note:-Publish JTicketing buy module on EasySocial Event details page. For publishing module on event details pages Please refer this Firstly find module position View Module Positions and publish module in that position.

12) For EasySocial events if you want to hide RSVP for paid events you need to follow below steps

For Events Pin View

  • Create template override for the event for this Create the default folder in your site template for example - /templates/protostar/html/com_easysocial/helpers/listing/event/
  • Copy the file into components/com_easysocial/themes/wireframe/helpers/listing/event/card.php and and paste in the folder that you just created above.
  • In override, item.php replace code (Approx line number - 117 - 119)

<li class="pull-right">
   <?php echo $this->html('event.action', $event);
</li>

With 

<?php
$show_rsvp = 1;
$jtickeketing_component_enabled = JComponentHelper::isEnabled('com_jticketing', true);
$jtickeketing_module_enabled = JModuleHelper::isEnabled('mod_jticketing_buy', true);

if($jtickeketing_component_enabled)
{

	if (JFile::exists(JPATH_ROOT . '/components/com_jticketing/jticketing.php'))
	{
		require_once JPATH_SITE . "/components/com_jticketing/helpers/main.php";
		$com_params      = JComponentHelper::getParams('com_jticketing');
		$integration     = $com_params->get('integration');
		$jticketingmainhelper = new jticketingmainhelper;
		$eventid = $event->id;
		$showbuybutton = $jticketingmainhelper->showbuybutton($eventid);
		$user  = JFactory::getUser();
		$isEventbought = $jticketingmainhelper->isEventbought($eventid, $user->id);

		if($showbuybutton and empty($isEventbought) and $integration == 4)
		{
			$show_rsvp = 0;
			?>
			<li class="pull-right">
				<a class="btn btn-es-primary-o btn-smt" href="/<?php echo JUri::root() . $event->getPermalink(); ?>"><?php echo JText::_('TICKET_RSVP_BUY_ATTEND'); ?></a>
			 </li>
			<?php
		}
	}
}

if($show_rsvp)
{?>
<li class="pull-right">
	<?php echo $this->html('event.action', $event); ?>
</li>
<?php
}?>
  • Create language override for the language constant - TICKET_RSVP_BUY_ATTEND  as Buy Ticket

For Event Detail View

  • Create template override for the event for this Create the cover folder in your site template for example - /templates/protostar/html/com_easysocial/helpers/cover
  • Copy the file /components/com_easysocial/themes/wireframe/helpers/cover/event.php into the folder that you just created above.
  • In override, default.php replace code (Approx line no - 225 - 227)
<div class="o-btn-group">
   <?php echo $this->html('event.action', $event, 'right', true); ?>
</div>

With

<?php
$show_rsvp = 1;
$jtickeketing_component_enabled = JComponentHelper::isEnabled('com_jticketing', true);
$jtickeketing_module_enabled = JModuleHelper::isEnabled('mod_jticketing_buy', true);

if($jtickeketing_component_enabled)
{

	if (JFile::exists(JPATH_ROOT . '/components/com_jticketing/jticketing.php'))
	{
		require_once JPATH_SITE . "/components/com_jticketing/helpers/main.php";
		$com_params      = JComponentHelper::getParams('com_jticketing');
		$integration     = $com_params->get('integration');
		$jticketingmainhelper = new jticketingmainhelper;
		$eventid = $event->id;
		$showbuybutton = $jticketingmainhelper->showbuybutton($eventid);
		$user  = JFactory::getUser();
		$isEventbought = $jticketingmainhelper->isEventbought($eventid, $user->id);

		if($showbuybutton and $integration == 4)
		{
			$show_rsvp = 0;
			?>
			<div class="o-btn-group">
				<a class="btn btn-es-primary-o btn-smt"><?php echo JText::_('TICKET_RSVP_BUY_ATTEND'); ?></a>
			 </div>
			<?php
		}
	}
}

if($show_rsvp)
{?>
<div class="o-btn-group">
	<?php echo $this->html('event.action', $event, 'right', true); ?>
</div>
<?php
}?>
  • Create language override for the language constant - EVENT_THIS_EVENT_IS_PAID_PLEASE_BUY_TICKET_TO_ATTEND  as This Event is paid. Please buy a ticket to attend.