PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.20
VikAppointments Services Booking Calendar v1.2.20
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / site / views / servicesearch / tmpl / default_checkout.php
vikappointments / site / views / servicesearch / tmpl Last commit date
default.php 1 month ago default.xml 1 month ago default_calendars.php 1 month ago default_checkout.php 1 month ago default_contact.php 1 month ago default_filterbar.php 1 month ago default_login.php 1 month ago default_options.php 1 month ago default_reviews.php 1 month ago default_service.php 1 month ago default_timeline.php 1 month ago default_waitlist.php 1 month ago index.html 1 month ago
default_checkout.php
90 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 $config = VAPFactory::getConfig();
15
16 // check whether the recurrence is enabled for the selected service
17 $recurrence = $config->getBool('enablerecur') && $this->service->use_recurrence;
18
19 $data = array(
20 /**
21 * True if the cart system is enabled (false by default). When enabled,
22 * it will be displayed a button to add multiple services into the cart.
23 *
24 * @var boolean
25 */
26 'cartEnabled' => $config->getBool('enablecart'),
27
28 /**
29 * True if the cart doesn't contain yet any appointment. When false, it
30 * will be possible to proceed to the checkout (the cart must be enabled too).
31 *
32 * @var boolean
33 */
34 'cartEmpty' => $this->isCartEmpty,
35
36 /**
37 * True if the waiting list is enabled (false by default). When enabled,
38 * it will be displayed a button to allow the customers register a
39 * subscription for the current employee/service.
40 *
41 * @var boolean
42 */
43 'waitlistEnabled' => VikAppointments::isWaitingList(),
44
45 /**
46 * True if the recurrence is enabled (false by default). When enabled,
47 * the customers will be able to book an appointment for the selected
48 * employee/service with recurrence.
49 *
50 * @var boolean
51 */
52 'recurrenceEnabled' => $recurrence,
53
54 /**
55 * An associative array containing the recurrence params:
56 * - repeat a list containing the values allowed to start the recurrence;
57 * - for a list containing the values allowed to end the recurrence;
58 * - min the minimum recurrence number;
59 * - max the maximum recurrence number.
60 *
61 * @var array
62 */
63 'recurrenceParams' => $recurrence ? VikAppointments::getRecurrenceParams() : array(),
64
65 /**
66 * The Item ID that will be used to route the URL used for AJAX.
67 * If not provided, the current one will be used.
68 *
69 * @var integer
70 */
71 'itemid' => $this->itemid,
72 );
73
74 /**
75 * The checkout block is displayed from the layout below:
76 * /components/com_vikappointments/layouts/blocks/checkout.php
77 *
78 * If you need to change something from this layout, just create
79 * an override of this layout by following the instructions below:
80 * - open the back-end of your Joomla
81 * - visit the Extensions > Templates > Templates page
82 * - edit the active template
83 * - access the "Create Overrides" tab
84 * - select Layouts > com_vikappointments > blocks
85 * - start editing the checkout.php file on your template to create your own layout
86 *
87 * @since 1.6
88 */
89 echo JLayoutHelper::render('blocks.checkout', $data);
90