closure.php
2 days ago
default.php
2 days ago
default_customer.php
2 days ago
default_details.php
2 days ago
default_fields.php
2 days ago
default_options.php
2 days ago
default_payment.php
2 days ago
index.html
2 days ago
list.php
2 days ago
default_options.php
93 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package VikAppointments |
| 4 | * @subpackage core |
| 5 | * @author E4J s.r.l. |
| 6 | * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved. |
| 7 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL |
| 8 | * @link https://vikwp.com |
| 9 | */ |
| 10 | |
| 11 | // No direct access |
| 12 | defined('ABSPATH') or die('No script kiddies please!'); |
| 13 | |
| 14 | // get first appointment |
| 15 | $app = $this->order->appointments[0]; |
| 16 | |
| 17 | $currency = VAPFactory::getCurrency(); |
| 18 | |
| 19 | ?> |
| 20 | |
| 21 | <h3><?php echo JText::translate('VAPMENUOPTIONS'); ?></h3> |
| 22 | |
| 23 | <div class="order-items-cart"> |
| 24 | |
| 25 | <!-- Define role to detect the supported hook --> |
| 26 | <!-- {"rule":"customizer","event":"onDisplayViewOrderinfo","key":"options.start","type":"field"} --> |
| 27 | |
| 28 | <?php |
| 29 | // plugins can use the "options.start" key to introduce custom |
| 30 | // HTML before the options list |
| 31 | if (isset($this->addons['options.start'])) |
| 32 | { |
| 33 | echo $this->addons['options.start']; |
| 34 | |
| 35 | // unset details form to avoid displaying it twice |
| 36 | unset($this->addons['options.start']); |
| 37 | } |
| 38 | |
| 39 | foreach ($app->options as $option) |
| 40 | { |
| 41 | ?> |
| 42 | <div class="cart-item-record"> |
| 43 | |
| 44 | <div class="cart-item-details"> |
| 45 | |
| 46 | <div class="cart-item-name"> |
| 47 | <span class="item-prod-name"><?php echo $option->name; ?></span> |
| 48 | |
| 49 | <?php |
| 50 | if ($option->varName) |
| 51 | { |
| 52 | ?><span class="item-option-name badge badge-info"><?php echo $option->varName; ?></span><?php |
| 53 | } |
| 54 | ?> |
| 55 | </div> |
| 56 | |
| 57 | <div class="cart-item-quantity"> |
| 58 | <?php |
| 59 | if ($option->multiple || $option->quantity > 1) |
| 60 | { |
| 61 | echo 'x' . $option->quantity; |
| 62 | } |
| 63 | ?> |
| 64 | </div> |
| 65 | |
| 66 | <div class="cart-item-price"> |
| 67 | <?php echo $currency->format($option->totals->gross); ?> |
| 68 | </div> |
| 69 | |
| 70 | </div> |
| 71 | |
| 72 | </div> |
| 73 | <?php |
| 74 | } |
| 75 | ?> |
| 76 | |
| 77 | <!-- Define role to detect the supported hook --> |
| 78 | <!-- {"rule":"customizer","event":"onDisplayViewOrderinfo","key":"options.end","type":"field"} --> |
| 79 | |
| 80 | <?php |
| 81 | // plugins can use the "options.end" key to introduce custom |
| 82 | // HTML next to the purchased options |
| 83 | if (isset($this->addons['options.end'])) |
| 84 | { |
| 85 | echo $this->addons['options.end']; |
| 86 | |
| 87 | // unset details form to avoid displaying it twice |
| 88 | unset($this->addons['options.end']); |
| 89 | } |
| 90 | ?> |
| 91 | |
| 92 | </div> |
| 93 |