# tier-pricing-table/8.0.2/src/Addons/RequestAQuote/views/frontend/integrated/table.php

Tiered Pricing Table for WooCommerce, version 8.0.2. 63 lines.

- Page: https://pluginprobe.com/plugins/tier-pricing-table/8.0.2/code/src/Addons/RequestAQuote/views/frontend/integrated/table.php
- Raw: https://pluginprobe.com/plugins/tier-pricing-table/8.0.2/raw/src/Addons/RequestAQuote/views/frontend/integrated/table.php
- Modified: 2026-09-24T13:05:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tier-pricing-table/8.0.2/code/src/Addons/RequestAQuote/views/frontend/integrated/table.php#L10-L20`.

```php
<?php
/**
 * Request a Quote Table Integrated Template.
 *
 * This template can be overridden by copying it to yourtheme/tiered-pricing-table/integrated/table.php.
 *
 * @var \TierPricingTable\Addons\RequestAQuote\Models\RequestQuoteForm $form
 * @var int $productId
 * @var bool $isDivTable
 * @var bool $hasQty
 * @var bool $hasPrice
 * @var bool $hasDiscount
 * @var int $columns      every column of the table, custom columns included
 * @var int $span         columns the button cell covers (everything after the quantity cell)
 * @var string $buttonHtml
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// templates copied before the custom-columns fix pass no span; behave as they did
$span = isset( $span ) ? (int) $span : ( ! empty( $hasDiscount ) ? 2 : 1 );

if ( $isDivTable ) : ?>
	<div class="tiered-pricing-table-row tpt-request-quote-integrated-row"
		 style="cursor: pointer; grid-template-columns: <?php echo esc_attr( $hasQty ? '1fr ' . $span . 'fr' : '1fr' ); ?>;"
		 onclick="document.getElementById('tpt-raq-table-<?php echo esc_attr( $productId ); ?>').click();">
		<?php if ( $hasQty ) : ?>
			<div class="tiered-pricing-table__quantity">
				<span class="tiered-pricing-table-row-qty">
					<?php echo esc_html( $form->getIntegratedLabelText() ); ?>
				</span>
			</div>
		<?php endif; ?>

		<?php if ( $hasPrice ) : ?>
			<div class="tiered-pricing-table__price" style="margin-left:auto">
				<span>
					<?php echo wp_kses_post($buttonHtml); ?>
				</span>
			</div>
		<?php endif; ?>
	</div>
<?php else : ?>
	<tr class="tiered-pricing-table-row tpt-request-quote-integrated-row" style="cursor: pointer;"
		onclick="document.getElementById('tpt-raq-table-<?php echo esc_attr( $productId ); ?>').click();">
		<?php if ( $hasQty ) : ?>
			<td class="tiered-pricing-table__quantity" style="vertical-align: middle">
				<span>
					<?php echo esc_html( $form->getIntegratedLabelText() ); ?>
				</span>
			</td>
		<?php endif; ?>
		<?php if ( $hasPrice ) : ?>
			<td class="tiered-pricing-table__price" <?php echo $span > 1 ? 'colspan="' . (int) $span . '"' : ''; ?> style="text-align: right">
				<span>
					<?php echo wp_kses_post($buttonHtml); ?>
				</span>
			</td>
		<?php endif; ?>
	</tr>
<?php endif; ?>

```
