|
As we know we have made changes in version 1.0.13 to make overrides for tickets and classes to create the tickets. If you are using the ticket creator override you have to make the following changes to your ticket creator file. More information about the override function can be read here: http://www.rd-media.org/welcome/248-ticketmaster-v1013-released.html
We have added some nice and new functionality and generated codes can be validated online at your door by your smartphone. We had a lots of quetions for this from the ASIAN content of the world as they are using QR code there. Scanning at the door with your smartphone requires codeREADr app for mobile phone and a subscription there.
- Positioning the barcode
- QR Codes can be used now. (Requires CURL enabled on your server)
- Choose 1D (normal barcode) or QR Code
- Using codeREADr Barcode validation by smartphone (3rd Party Barcode Scanning Company)
- Fixed the subticket system (Completely rewritten)
- Added easy adding tickets by table and add to cart.
How to upgrade your override? (Needed for QR Codes)
- Open file: [ADMINISTRATOR]/components/com_ticketmaster/classes/override/createtickets.class.php
- Search for: $pdf->EAN13(150, 72, $code);
- Replace it with: $pdf->EAN13($config->barcode_1d_x, $config->barcode_1d_y, $code);
Now the position of the barcode can be set in the configuration of Ticketmaster. This can be very useful when changing the ticketlayout.
Then scroll down a little and you will see this: $ordercode = $session->get('ordercode'); Here is the session used for creating a barcode and stores it. Below you have to add these lines.
if ($config->barcode_type == 1) {
## Gettin the genrated code. $cache_folder = JPATH_ADMINISTRATOR.DS.'components'.DS.'com_ticketmaster'.DS.'classes'.DS.'cache'.DS;
$pdf->Image($cache_folder.$ordercode.'.png' ,$config->barcode_2d_x, $config->barcode_2d_y ,0 ,0);
$pdf->SetFont('Arial','B',8); $pdf->SetXY($config->barcode_2d_x, $config->barcode_2d_y-2); $pdf->Write(0, $ordercode);
jimport('joomla.filesystem.file');
## We do want to remove the QR code again. ## It is not needed anymore, as ticket has been printed. JFile::delete($cache_folder.$ordercode.'.png');
}
|