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 / blocks.php

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

46 lines 1.5 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 Blocks Integrated Template.
4 *
5 * This template can be overridden by copying it to yourtheme/tiered-pricing-table/integrated/blocks.php.
6 *
7 * @var \TierPricingTable\Addons\RequestAQuote\Models\RequestQuoteForm $form
8 * @var int $productId
9 * @var string $blocksStyle
10 * @var string $promptText
11 * @var string $buttonHtml
12 */
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16 ?>
17 <div class="tiered-pricing-block tpt-request-quote-integrated-block"
18 onclick="document.getElementById('tpt-raq-link-<?php echo esc_attr( $productId ); ?>').click();">
19 <?php echo wp_kses_post( $buttonHtml ); ?>
20
21 <?php if ( $blocksStyle === 'style-3' ) : ?>
22 <div class="tiered-pricing-block-inner">
23 <div class="tiered-pricing-block__price">
24 <span><?php echo esc_html( $promptText ); ?></span>
25 </div>
26 <div class="tiered-pricing-block__quantity">
27 <span><?php echo esc_html( $form->getIntegratedLabelText() ); ?></span>
28 </div>
29 </div>
30 <?php elseif ( in_array( $blocksStyle, [ 'style-1', 'style-2' ] ) ) : ?>
31 <div class="tiered-pricing-block__quantity">
32 <span><?php echo esc_html( $form->getIntegratedLabelText() ); ?></span>
33 </div>
34 <div class="tiered-pricing-block__price">
35 <span><?php echo esc_html( $promptText ); ?></span>
36 </div>
37 <?php else : // default, style-4, style-5, style-6 ?>
38 <div class="tiered-pricing-block__price">
39 <span><?php echo esc_html( $promptText ); ?></span>
40 </div>
41 <span class="tiered-pricing-block__quantity">
42 <?php echo esc_html( $form->getIntegratedLabelText() ); ?>
43 </span>
44 <?php endif; ?>
45 </div>
46