HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/salamatk/takarzan.ir/wp-content/themes/xts-luman/woocommerce/single-product/price-table.php
<?php
/**
 * Volume discounts table.
 *
 * @var array $data Data for render table.
 *
 * @package xts
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

?>

<?php do_action( 'xts_before_dynamic_discounts_table' ); ?>

<table>
	<thead>
		<tr>
			<th scope="col">
				<?php echo esc_html__( 'Quantity', 'xts-theme' ); ?>
			</th>
			<th scope="col">
				<?php echo esc_html__( 'Price', 'xts-theme' ); ?>
			</th>
			<th scope="col">
				<?php echo esc_html__( 'Discount', 'xts-theme' ); ?>
			</th>
		</tr>
	</thead>
	<tbody>
	<?php foreach ( $data as $data_id => $row ) : ?>
		<tr data-min="<?php echo esc_attr( $row['min'] ); ?>" data-max="<?php echo esc_attr( $row['max'] ); ?>">
			<td>
				<span>
					<?php echo esc_html( $row['quantity'] ); ?>
				</span>
			</td>
			<td>
				<?php echo wp_kses( $row['price'], true ); ?>

				<?php if ( ! empty( $row['unit_of_measure'] ) ) : ?>
					<span class="xts-price-unit">
						<?php echo wp_kses( $row['unit_of_measure'], true ); ?>
					</span>
				<?php endif; ?>
			</td>
			<td>
				<span>
					<?php echo esc_html( $row['discount'] ); ?>
				</span>
			</td>
		</tr>
	<?php endforeach; ?>
	</tbody>
</table>

<?php do_action( 'xts_after_dynamic_discounts_table' ); ?>