PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.4
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.4
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
fluentform / app / Views / receipt / order_items_table.php

order_items_table.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 6.2.4, at app/Views/receipt/order_items_table.php

48 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined('ABSPATH') or die;
4
5 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variables in view files
6 ?>
7 <table style="width: 100%;border: 1px solid #cbcbcb;" class="table ffp_order_items_table ffp_table table_bordered">
8 <thead>
9 <tr>
10 <th><?php esc_html_e('Item', 'fluentform'); ?></th>
11 <th><?php esc_html_e('Quantity', 'fluentform'); ?></th>
12 <th><?php esc_html_e('Price', 'fluentform'); ?></th>
13 <th><?php esc_html_e('Line Total', 'fluentform'); ?></th>
14 </tr>
15 </thead>
16 <tbody>
17 <?php foreach ($items as $order_item): ?>
18 <tr>
19
20 <td><?php echo fluentform_sanitize_html($order_item->item_name); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped using wp_kses ?></td>
21 <td><?php echo esc_html($order_item->quantity); ?></td>
22 <td><?php echo fluentform_sanitize_html($order_item->formatted_item_price); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Formatted price contains decoded currency symbols ?></td>
23 <td><?php echo fluentform_sanitize_html($order_item->formatted_line_total); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Formatted amount contains decoded currency symbols ?></td>
24 </tr>
25 <?php endforeach; ?>
26 </tbody>
27 <tfoot>
28 <?php if($discount_items): ?>
29 <tr class="ffp_total_row">
30 <th style="text-align: right" colspan="3"><?php esc_html_e('Sub-Total', 'fluentform'); ?></th>
31 <td><?php echo fluentform_sanitize_html($subTotal); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Formatted amount contains decoded currency symbols ?></td>
32 </tr>
33 <?php foreach ($discount_items as $discount_item): ?>
34 <tr class="ffp_total_row">
35 <th style="text-align: right" colspan="3"><?php esc_html_e('Discount:', 'fluentform'); ?> <?php echo fluentform_sanitize_html($discount_item->item_name); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></th>
36 <td>-<?php echo fluentform_sanitize_html($discount_item->formatted_line_total); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Formatted amount contains decoded currency symbols ?></td>
37 </tr>
38 <?php endforeach; ?>
39 <?php endif; ?>
40
41 <tr class="ffp_total_row">
42 <th style="text-align: right" colspan="3"><?php esc_html_e('Total', 'fluentform'); ?></th>
43 <td><?php echo fluentform_sanitize_html($orderTotal); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Formatted amount contains decoded currency symbols ?></td>
44 </tr>
45 </tfoot>
46
47 </table>
48