Giter Site home page Giter Site logo

thebnl / event-tickets Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 4.0 1.02 MB

Event tickets for SilverStripe and Event Calendar

License: BSD 3-Clause "New" or "Revised" License

PHP 87.82% Scheme 8.56% Vue 3.43% JavaScript 0.19%
silverstripe event-calendar event-tickets omnipay ecommerce

event-tickets's Introduction

Event tickets for SilverStripe

Scrutinizer Code Quality Build Status Latest Stable Version

Add a ticket office to your silverstripe site. Payments handled trough the SilverStripe Omnipay module.

Installation

Install the module trough composer

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.

# 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.

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

event-tickets's People

Contributors

dependabot[bot] avatar thebnl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.