2017 © Pedro Peláez
 

silverstripe-module silverstripe-event-tickets

Event tickets for SilverStripe Event Calendar

image

bramdeleeuw/silverstripe-event-tickets

Event tickets for SilverStripe Event Calendar

  • Wednesday, June 20, 2018
  • by TheBnl
  • Repository
  • 1 Watchers
  • 1 Stars
  • 342 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 30 Versions
  • 8 % Grown

The README.md

Event tickets for SilverStripe

Scrutinizer Code Quality Build Status Latest Stable Version, (*1)

Add a ticket office to your silverstripe site. Payments handled trough the SilverStripe Omnipay module., (*2)

Installation

Install the module trough composer, (*3)

composer require bramdeleeuw/silverstripe-event-tickets

Add the nessesary extensions to the DataObject you want to sell tickets on. This can be an Event, for example with an events module. Or you can add the tickets to a special tickets Page, when, for example, you are selling tickets for an festival where one ticket grants access to multiple events., (*4)

# the object that sells tickets
XD\Events\Model\EventPage:
 extensions:
   - Broarm\EventTickets\Extensions\TicketExtension
# the ticket controller
XD\Events\Model\EventPageController:
 extensions:
   - Broarm\EventTickets\Extensions\TicketControllerExtension
   - Broarm\EventTickets\Checkout\Steps\RegisterStep
   - Broarm\EventTickets\Checkout\Steps\SummaryStep
   - Broarm\EventTickets\Checkout\Steps\SuccessStep

On the extended Object you need to expose a couple of methods that we use to add data to the ticket., (*5)

public function getEventTitle()
{
    return $this->owner->Title;
}

public function getEventStartDate()
{
    return $this->owner->dbObject('StartDate');
}

public function getEventAddress()
{
    $this->owner->getFullAddress();
}

Maintainers

Bram de Leeuw, (*6)

The Versions