PluginProbe
Tiered Pricing Table for WooCommerce / 7.1.5
Tiered Pricing Table for WooCommerce v7.1.5
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
tier-pricing-table / src / Addons / RequestAQuote / views / frontend / integrated / table.php

table.php in Tiered Pricing Table for WooCommerce 7.1.5, at src/Addons/RequestAQuote/views/frontend/integrated/table.php

58 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Request a Quote Table Integrated Template.
4 *
5 * This template can be overridden by copying it to yourtheme/tiered-pricing-table/integrated/table.php.
6 *
7 * @var \TierPricingTable\Addons\RequestAQuote\Models\RequestQuoteForm $form
8 * @var int $productId
9 * @var bool $isDivTable
10 * @var bool $hasQty
11 * @var bool $hasPrice
12 * @var bool $hasDiscount
13 * @var string $buttonHtml
14 */
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit;
17 }
18
19 if ( $isDivTable ) : ?>
20 <div class="tiered-pricing-table-row tpt-request-quote-integrated-row"
21 style="cursor: pointer; grid-template-columns: 1fr 2fr;"
22 onclick="document.getElementById('tpt-raq-table-<?php echo esc_attr( $productId ); ?>').click();">
23 <?php if ( $hasQty ) : ?>
24 <div class="tiered-pricing-table__quantity">
25 <span class="tiered-pricing-table-row-qty">
26 <?php echo esc_html( $form->getIntegratedLabelText() ); ?>
27 </span>
28 </div>
29 <?php endif; ?>
30
31 <?php if ( $hasPrice ) : ?>
32 <div class="tiered-pricing-table__price" style="margin-left:auto">
33 <span>
34 <?php echo wp_kses_post($buttonHtml); ?>
35 </span>
36 </div>
37 <?php endif; ?>
38 </div>
39 <?php else : ?>
40 <tr class="tiered-pricing-table-row tpt-request-quote-integrated-row" style="cursor: pointer;"
41 onclick="document.getElementById('tpt-raq-table-<?php echo esc_attr( $productId ); ?>').click();">
42 <?php if ( $hasQty ) : ?>
43 <td class="tiered-pricing-table__quantity" style="vertical-align: middle">
44 <span>
45 <?php echo esc_html( $form->getIntegratedLabelText() ); ?>
46 </span>
47 </td>
48 <?php endif; ?>
49 <?php if ( $hasPrice ) : ?>
50 <td class="tiered-pricing-table__price" <?php echo esc_attr($hasDiscount) ? 'colspan="2"' : ''; ?> style="text-align: right">
51 <span>
52 <?php echo wp_kses_post($buttonHtml); ?>
53 </span>
54 </td>
55 <?php endif; ?>
56 </tr>
57 <?php endif; ?>
58