<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?>
<hr>
<h4>WooCommerce</h4>
<div class="wpo-fieldgroup__subgroup">
	<label for="enable_cache_per_country">
		<input name="enable_cache_per_country" id="enable_cache_per_country" class="cache-settings" type="checkbox" value="true" <?php checked($wpo_cache_options['enable_cache_per_country'], 1); ?>>
		<?php esc_html_e("Generate country-specific files", 'wp-optimize'); ?>
	</label>
	<span tabindex="0" data-tooltip="<?php esc_attr_e("Enable this if you need to display a different price depending on the visitor's location (e.g. when applying different taxes like VAT depending on the country).", 'wp-optimize'); ?> <?php esc_html_e("This feature uses geolocation to determine the user's location, and defaults to the shop's location.", 'wp-optimize'); ?> <?php esc_html_e("When enabled, a cookie will be added, allowing WP-Optimize to serve the corresponding cache.", 'wp-optimize'); ?>"><span class="dashicons dashicons-editor-help"></span> </span>
</div>
<?php if (class_exists('WC_Aelia_CurrencySwitcher')) : ?>
<div class="wpo-fieldgroup__subgroup">
	<label for="enable_cache_aelia_currency">
		<input name="enable_cache_aelia_currency" id="enable_cache_aelia_currency" class="cache-settings" type="checkbox" value="true" <?php checked($wpo_cache_options['enable_cache_aelia_currency'], 1); ?>>
		<?php esc_html_e("Generate currency-specific files for Aelia Currency Switcher", 'wp-optimize'); ?>
	</label>
	<span tabindex="0" data-tooltip="<?php esc_attr_e("Enable to cache Aelia Switcher currency data for faster performance and efficient currency switching.", 'wp-optimize'); ?>"><span class="dashicons dashicons-editor-help"></span> </span>
</div>
<?php endif;
