Files
wc-tier-and-package-prices/templates/admin/settings-page.twig

54 lines
2.9 KiB
Twig
Raw Permalink Normal View History

{#
# Admin Settings Page Template
#
# @package WC_Tier_Package_Prices
#}
<div class="wrap">
<h1>{{ get_admin_page_title()|esc_html }}</h1>
<form action="options.php" method="post">
{{ settings_fields('wc_tpp_settings') }}
<table class="form-table">
<tr>
<th scope="row">
<label for="wc_tpp_enable_tier_pricing">{{ 'Enable Tier Pricing'|__('wc-tier-package-prices') }}</label>
</th>
<td>
<input type="checkbox" id="wc_tpp_enable_tier_pricing" name="wc_tpp_enable_tier_pricing" value="yes" {{ checked(get_option('wc_tpp_enable_tier_pricing'), 'yes')|raw }}>
<p class="description">{{ 'Enable tier pricing for products'|__('wc-tier-package-prices') }}</p>
</td>
</tr>
<tr>
<th scope="row">
<label for="wc_tpp_enable_package_pricing">{{ 'Enable Package Pricing'|__('wc-tier-package-prices') }}</label>
</th>
<td>
<input type="checkbox" id="wc_tpp_enable_package_pricing" name="wc_tpp_enable_package_pricing" value="yes" {{ checked(get_option('wc_tpp_enable_package_pricing'), 'yes')|raw }}>
<p class="description">{{ 'Enable fixed-price packages for products'|__('wc-tier-package-prices') }}</p>
</td>
</tr>
<tr>
<th scope="row">
<label for="wc_tpp_display_table">{{ 'Display Pricing Table'|__('wc-tier-package-prices') }}</label>
</th>
<td>
<input type="checkbox" id="wc_tpp_display_table" name="wc_tpp_display_table" value="yes" {{ checked(get_option('wc_tpp_display_table'), 'yes')|raw }}>
<p class="description">{{ 'Show tier and package pricing table on product pages'|__('wc-tier-package-prices') }}</p>
</td>
</tr>
<tr>
<th scope="row">
<label for="wc_tpp_display_position">{{ 'Display Position'|__('wc-tier-package-prices') }}</label>
</th>
<td>
<select id="wc_tpp_display_position" name="wc_tpp_display_position">
<option value="before_add_to_cart" {{ selected(get_option('wc_tpp_display_position'), 'before_add_to_cart')|raw }}>{{ 'Before Add to Cart'|__('wc-tier-package-prices') }}</option>
<option value="after_add_to_cart" {{ selected(get_option('wc_tpp_display_position'), 'after_add_to_cart')|raw }}>{{ 'After Add to Cart'|__('wc-tier-package-prices') }}</option>
<option value="after_price" {{ selected(get_option('wc_tpp_display_position'), 'after_price')|raw }}>{{ 'After Price'|__('wc-tier-package-prices') }}</option>
</select>
</td>
</tr>
</table>
{{ submit_button() }}
</form>
</div>