tier-pricing-table
/
src
/
Addons
/
RequestAQuote
/
views
/
frontend
/
integrated
/
horizontal-table.php
horizontal-table.php in Tiered Pricing Table for WooCommerce 7.1.5, at src/Addons/RequestAQuote/views/frontend/integrated/horizontal-table.php
| 1 | <?php |
| 2 | /** |
| 3 | * Request a Quote Horizontal Table Integrated Template. |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/tiered-pricing-table/integrated/horizontal-table.php. |
| 6 | * |
| 7 | * @var \TierPricingTable\Addons\RequestAQuote\Models\RequestQuoteForm $form |
| 8 | * @var int $productId |
| 9 | * @var bool $hasQty |
| 10 | * @var bool $hasDiscount |
| 11 | * @var bool $hasPrice |
| 12 | * @var string $buttonHtml |
| 13 | */ |
| 14 | if ( ! defined( 'ABSPATH' ) ) { |
| 15 | exit; |
| 16 | } |
| 17 | ?> |
| 18 | <div class="tiered-pricing-horizontal-table-column tiered-pricing-horizontal-table__values tpt-request-quote-integrated-column" |
| 19 | style="cursor: pointer;" |
| 20 | onclick="document.getElementById('tpt-raq-table-<?php echo esc_attr( $productId ); ?>').click();"> |
| 21 | <?php if ( $hasQty ) : ?> |
| 22 | <div class="tiered-pricing-horizontal-table-cell tiered-pricing-horizontal-table-cell--quantity"> |
| 23 | <span><?php echo esc_html( $form->getIntegratedLabelText() ); ?></span> |
| 24 | </div> |
| 25 | <?php endif; ?> |
| 26 | |
| 27 | <?php if ( $hasDiscount ) : ?> |
| 28 | <div class="tiered-pricing-horizontal-table-cell tiered-pricing-horizontal-table-cell--discount"> |
| 29 | <span></span> |
| 30 | </div> |
| 31 | <?php endif; ?> |
| 32 | |
| 33 | <?php if ( $hasPrice ) : ?> |
| 34 | <div class="tiered-pricing-horizontal-table-cell tiered-pricing-horizontal-table-cell--price"> |
| 35 | <span> |
| 36 | <?php echo wp_kses_post( $buttonHtml ); ?> |
| 37 | </span> |
| 38 | </div> |
| 39 | <?php endif; ?> |
| 40 | </div> |
| 41 |