PluginProbe
Tiered Pricing Table for WooCommerce / 8.0.2
Tiered Pricing Table for WooCommerce v8.0.2
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 / options.php

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

58 lines 1.6 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 Options Integrated Template.
4 *
5 * This template can be overridden by copying it to yourtheme/tiered-pricing-table/integrated/options.php.
6 *
7 * @var \TierPricingTable\Addons\RequestAQuote\Models\RequestQuoteForm $form
8 * @var int $productId
9 * @var string $optionsStyle
10 * @var string $buttonHtml
11 */
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit;
14 }
15
16 // styles that wrap the option content in an inner box; style 5 also has a head row, style 6 a main column
17 $hasInner = in_array( $optionsStyle, array( 'style-3', 'style-4' ), true );
18 $hasHead = 'style-4' === $optionsStyle;
19 $hasMain = 'style-5' === $optionsStyle;
20 ?>
21 <div class="tiered-pricing-option tpt-request-quote-integrated-option"
22 onclick="document.getElementById('tpt-raq-link-<?php echo esc_attr( $productId ); ?>').click();">
23
24 <?php if ( $hasInner ) : ?>
25 <div class="tiered-pricing-option-inner">
26 <?php endif; ?>
27
28 <?php if ( $hasHead ) : ?>
29 <div class="tiered-pricing-option__head">
30 <?php endif; ?>
31 <div class="tiered-pricing-option__checkbox">
32 <div class="tiered-pricing-option-checkbox"></div>
33 </div>
34 <?php if ( $hasHead ) : ?>
35 </div>
36 <?php endif; ?>
37
38 <?php if ( $hasMain ) : ?>
39 <div class="tiered-pricing-option__main">
40 <?php endif; ?>
41 <div class="tiered-pricing-option__quantity">
42 <strong><?php echo esc_html( $form->getIntegratedLabelText() ); ?></strong>
43 </div>
44 <?php if ( $hasMain ) : ?>
45 </div>
46 <?php endif; ?>
47
48 <div class="tiered-pricing-option__pricing">
49 <div class="tiered-pricing-option-price">
50 <?php echo wp_kses_post( $buttonHtml ); ?>
51 </div>
52 </div>
53
54 <?php if ( $hasInner ) : ?>
55 </div>
56 <?php endif; ?>
57 </div>
58