currencies-dropdown.twig
5 years ago
currency-switcher-options-dialog.twig
1 year ago
currency-switcher-options.twig
2 years ago
custom-prices.twig
5 years ago
exchange-rates.twig
4 years ago
multi-currency.twig
4 years ago
multi-currency.twig
73 lines
| 1 | |
| 2 | {{ wp_do_action( 'wcml_before_multi_currency_ui' ) }} |
| 3 | |
| 4 | |
| 5 | <form method="post" action="{{ form.action }}" id="wcml_mc_options"> |
| 6 | {{ form.nonce|raw }} |
| 7 | <input type="hidden" id="wcml_save_currency_nonce" value="{{ form.save_currency_nonce }}"/> |
| 8 | <input type="hidden" id="del_currency_nonce" value="{{ form.del_currency_nonce }}" /> |
| 9 | <input type="hidden" id="currencies_list_nonce" value="{{ form.currencies_list_nonce }}" /> |
| 10 | <input type="hidden" name="action" value="save-mc-options" /> |
| 11 | |
| 12 | <div class="wcml-section "> |
| 13 | <div class="wcml-section-header"> |
| 14 | <h3>{{ strings.headers.enable_disable }}</h3> |
| 15 | </div> |
| 16 | <div class="wcml-section-content wcml-section-content-wide"> |
| 17 | <p> |
| 18 | <input type="checkbox" name="multi_currency" id="multi_currency_independent" value="{{ form.multi_currency_option }}" |
| 19 | {% if multi_currency_on %}checked="checked"{% endif %} {% if mco_disabled %}disabled="disabled"{% endif %} /> |
| 20 | <label for="multi_currency_independent"> |
| 21 | {{ form.label_mco }} |
| 22 | |
| 23 | <a href="{{ form.label_mco_learn_url }}" class="wpml-external-link" target="_blank">{{ form.label_mco_learn_txt }}</a> |
| 24 | </label> |
| 25 | </p> |
| 26 | |
| 27 | {% if wc_currency is empty %} |
| 28 | <p> |
| 29 | <i class="icon-warning-sign"></i> |
| 30 | {{ wc_currency_empty_warn|raw }} |
| 31 | </p> |
| 32 | {% endif %} |
| 33 | |
| 34 | </div> |
| 35 | </div> |
| 36 | |
| 37 | {% if wc_currency %} |
| 38 | <div class="wcml-section" id="multi-currency-per-language-details" {% if wcml_settings.enable_multi_currency != form.multi_currency_option %}style="display:none"{% endif %}> |
| 39 | |
| 40 | <div class="wcml-section-header"> |
| 41 | <h3>{{ strings.headers.currencies }}</h3> |
| 42 | </div> |
| 43 | |
| 44 | <div id="wcml-multicurrency-options" class="js-wcml-react-ui wcml-section-content wcml-section-content-wide"></div> |
| 45 | |
| 46 | <ul id="display_custom_prices_select" {% if multi_currency_on is empty %}style="display: none;"{% endif %}> |
| 47 | <li> |
| 48 | <input type="checkbox" name="display_custom_prices" id="display_custom_prices" |
| 49 | value="1" {% if form.custom_prices_select.checked %} checked="checked"{% endif %}> |
| 50 | <label for="display_custom_prices">{{ form.custom_prices_select.label|raw }}</label> |
| 51 | <i class="otgs-ico-help wcml-tip" data-tip="{{ form.custom_prices_select.tip }}"></i> |
| 52 | </li> |
| 53 | </ul> |
| 54 | |
| 55 | </div> |
| 56 | |
| 57 | {% include 'exchange-rates.twig' with exchange_rates %} |
| 58 | |
| 59 | {{ wp_do_action( 'wcml_before_currency_switcher_options' ) }} |
| 60 | |
| 61 | {% include 'currency-switcher-options.twig' %} |
| 62 | |
| 63 | <input type="hidden" id="wcml_warn_message" value="{{ form.navigate_warn }}" /> |
| 64 | <input type="hidden" id="wcml_warn_disable_language_massage" value="{{ form.cur_lang_warn }}" /> |
| 65 | |
| 66 | <p class="wpml-margin-top-sm"> |
| 67 | <input id="wcml_mc_options_submit" type='submit' value='{{ form.submit }}' class='button-primary'/> |
| 68 | </p> |
| 69 | |
| 70 | {% endif %} |
| 71 | |
| 72 | </form> |
| 73 |