Add initial files and database migration for ticket pricing system
- Created new directories and index files for controls, factory, and views. - Added .htaccess files for URL rewriting in layout and images directories. - Included a logo image in the layout/images directory. - Implemented load_prices.php to load ticket prices from the database into settings. - Developed admin panel settings page for enabling ticket sales. - Created tickets management page in the admin panel to display and edit ticket prices. - Added upgrade.php for database migrations, including creating the ticket_prices table and adding weekend price column.
This commit is contained in:
@@ -35,7 +35,12 @@
|
||||
<?php foreach ($this->cart as $ticket_id => $combinations) : ?>
|
||||
<?php foreach ($combinations as $key => $value) : ?>
|
||||
<tr>
|
||||
<td data-label="BILETY"><?= $this->settings['tickets'][$ticket_id]['name']; ?> (x<?= $value["quantity"]; ?>)</td>
|
||||
<td data-label="BILETY">
|
||||
<?= $this->settings['tickets'][$ticket_id]['name']; ?> (x<?= $value["quantity"]; ?>)
|
||||
<?php if (!empty($value['date'])) : ?>
|
||||
<br><small class="ticket-date"><?= $value['date']; ?></small>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td data-label="CENA"><?= $value['ticket_price']; ?> zł</td>
|
||||
<td data-label="WARTOŚĆ"><?= $value['ticket_price'] * $value["quantity"]; ?> zł</td>
|
||||
<td data-label="ZMIENIĆ ILOŚĆ">
|
||||
|
||||
Reference in New Issue
Block a user