PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / 2.5.0
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution v2.5.0
2.5.0 2.4.0 2.3.0 2.2.5 2.2.0 2.1.2 2.1.1 trunk 1.10.0 1.10.01 1.10.02 1.5.0 1.5.01 1.5.02 1.5.1 1.5.10 1.5.20 1.5.21 1.5.22 1.5.23 1.5.24 1.5.25 1.6.0 1.7.0 1.7.1 All 34 releases
← All changes | app/Views/public/receipt/order-items-table.php +9 -4 1.10.0 → 2.5.0 View file →
@@ -1,7 +1,12 @@
1 1 <?php
2 +defined( 'ABSPATH' ) || exit;
2 3
3 -defined( 'ABSPATH' ) || exit;
4 +/**
5 + * @var object $order
6 + * @var array $currency_settings
7 + * @var bool $hasSubscription
8 + */
4 9
5 10 if (!$order->items) {
6 11 return '';
7 12 }
@@ -16,10 +21,10 @@
16 21 </thead>
17 22 <tbody>
18 23 <?php $fluentBookingSubTotal = 0; ?>
19 24 <?php foreach ($order->items->toArray() as $fluentBookingOrderItem) {
20 - if (is_array($order_item)) {
21 - if ($fluentBookingOrderItem['item_total']) :?>
25 + if (is_array($fluentBookingOrderItem)) {
26 + if (!empty($fluentBookingOrderItem['item_total'])) :?>
22 27 <tr>
23 28 <td><?php echo esc_html($fluentBookingOrderItem['item_name']); ?></td>
24 29 <td><?php echo esc_html($fluentBookingOrderItem['quantity']); ?></td>
25 30 <td><?php echo esc_attr(fluentbookingFormattedAmount($fluentBookingOrderItem['item_price'], $currency_settings)); ?></td>
@@ -28,9 +33,9 @@
28 33 <?php
29 34 $fluentBookingSubTotal += $fluentBookingOrderItem['item_total'];
30 35 endif;
31 36 } else {
32 - if ($fluentBookingOrderItem->item_total) :?>
37 + if (isset($fluentBookingOrderItem->item_total) && $fluentBookingOrderItem->item_total) :?>
33 38 <tr>
34 39 <td><?php echo esc_html($fluentBookingOrderItem->item_name); ?></td>
35 40 <td><?php echo esc_html($fluentBookingOrderItem->quantity); ?></td>
36 41 <td><?php echo esc_html(fluentbookingFormattedAmount($fluentBookingOrderItem->item_price, $currency_settings)); ?></td>