2025-12-21 04:56:50 +01:00
|
|
|
{#
|
|
|
|
|
# Admin Tier Row Template
|
|
|
|
|
#
|
|
|
|
|
# @package WC_Tier_Package_Prices
|
|
|
|
|
# @var int index
|
|
|
|
|
# @var array tier
|
|
|
|
|
#}
|
|
|
|
|
<div class="wc-tpp-tier-row">
|
|
|
|
|
<p class="form-field">
|
|
|
|
|
<label>{{ 'Minimum Quantity'|__('wc-tier-package-prices') }}</label>
|
|
|
|
|
<input type="number"
|
|
|
|
|
name="_wc_tpp_tiers[{{ index|esc_attr }}][min_qty]"
|
|
|
|
|
value="{{ tier.min_qty|default('')|esc_attr }}"
|
|
|
|
|
placeholder="{{ 'e.g., 10'|__('wc-tier-package-prices') }}"
|
|
|
|
|
min="1"
|
|
|
|
|
step="1"
|
|
|
|
|
class="short">
|
|
|
|
|
</p>
|
|
|
|
|
<p class="form-field">
|
|
|
|
|
<label>{{ 'Price per Unit'|__('wc-tier-package-prices') }}</label>
|
|
|
|
|
<input type="text"
|
|
|
|
|
name="_wc_tpp_tiers[{{ index|esc_attr }}][price]"
|
|
|
|
|
value="{{ tier.price|default('')|esc_attr }}"
|
|
|
|
|
placeholder="{{ 'e.g., 9.99'|__('wc-tier-package-prices') }}"
|
|
|
|
|
class="short wc_input_price">
|
|
|
|
|
</p>
|
2025-12-22 00:15:48 +01:00
|
|
|
<p class="form-field">
|
|
|
|
|
<label>{{ 'Label (Optional)'|__('wc-tier-package-prices') }}</label>
|
|
|
|
|
<input type="text"
|
|
|
|
|
name="_wc_tpp_tiers[{{ index|esc_attr }}][label]"
|
|
|
|
|
value="{{ tier.label|default('')|esc_attr }}"
|
|
|
|
|
placeholder="{{ 'e.g., Wholesale'|__('wc-tier-package-prices') }}"
|
|
|
|
|
class="short">
|
|
|
|
|
</p>
|
2025-12-21 04:56:50 +01:00
|
|
|
<button type="button" class="button wc-tpp-remove-tier">{{ 'Remove'|__('wc-tier-package-prices') }}</button>
|
|
|
|
|
</div>
|