定制 xddesigners/silverstripe-event-tickets 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xddesigners/silverstripe-event-tickets

Composer 安装命令:

composer require xddesigners/silverstripe-event-tickets

包简介

Event tickets for SilverStripe Event Calendar

README 文档

README

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:
   - XD\EventTickets\Extensions\TicketExtension
# the ticket controller
XD\Events\Model\EventPageController:
 extensions:
   - XD\EventTickets\Extensions\TicketControllerExtension
   - XD\EventTickets\Checkout\Steps\RegisterStep
   - XD\EventTickets\Checkout\Steps\SummaryStep
   - XD\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

Remy Vaartjes - XD designers

Thanks to Bram de Leeuw for working on the development of this module.

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2025-11-12