tier-pricing-table
/
src
/
Addons
/
RequestAQuote
/
views
/
frontend
/
integrated
/
horizontal-table.php
horizontal-table.php in Tiered Pricing Table for WooCommerce 8.0.2, 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 int $customColumns |
| 13 | * @var string $buttonHtml |
| 14 | */ |
| 15 | if ( ! defined( 'ABSPATH' ) ) { |
| 16 | exit; |
| 17 | } |
| 18 | ?> |
| 19 | <div class="tiered-pricing-horizontal-table-column tiered-pricing-horizontal-table__values tpt-request-quote-integrated-column" |
| 20 | style="cursor: pointer;" |
| 21 | onclick="document.getElementById('tpt-raq-table-<?php echo esc_attr( $productId ); ?>').click();"> |
| 22 | <?php if ( $hasQty ) : ?> |
| 23 | <div class="tiered-pricing-horizontal-table-cell tiered-pricing-horizontal-table-cell--quantity"> |
| 24 | <span><?php echo esc_html( $form->getIntegratedLabelText() ); ?></span> |
| 25 | </div> |
| 26 | <?php endif; ?> |
| 27 | |
| 28 | <?php if ( $hasDiscount ) : ?> |
| 29 | <div class="tiered-pricing-horizontal-table-cell tiered-pricing-horizontal-table-cell--discount"> |
| 30 | <span></span> |
| 31 | </div> |
| 32 | <?php endif; ?> |
| 33 | |
| 34 | <?php if ( $hasPrice ) : ?> |
| 35 | <div class="tiered-pricing-horizontal-table-cell tiered-pricing-horizontal-table-cell--price"> |
| 36 | <span> |
| 37 | <?php echo wp_kses_post( $buttonHtml ); ?> |
| 38 | </span> |
| 39 | </div> |
| 40 | <?php endif; ?> |
| 41 | |
| 42 | <?php for ( $i = 0; $i < (int) ( $customColumns ?? 0 ); $i++ ) : ?> |
| 43 | <div class="tiered-pricing-horizontal-table-cell"></div> |
| 44 | <?php endfor; ?> |
| 45 | </div> |
| 46 |