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
custom-prices.twig
141 lines
| 1 | {% if is_variation %} |
| 2 | <tr><td> |
| 3 | {% endif %} |
| 4 | |
| 5 | <div class="wcml_custom_prices_block"> |
| 6 | {% if currencies is empty %} |
| 7 | <div class="wcml_custom_prices_options_block"> |
| 8 | <label>{{ strings.not_set|raw }}</label> |
| 9 | </div> |
| 10 | {% else %} |
| 11 | <div class="wcml_custom_prices_options_block"> |
| 12 | |
| 13 | <label for="wcml_custom_prices_auto[{{ product_id }}]"> |
| 14 | <input type="radio" name="_wcml_custom_prices[{{ product_id }}]" id="wcml_custom_prices_auto[{{ product_id }}]" value="0" class="wcml_custom_prices_input" {{ checked_calc_auto|raw }} /> |
| 15 | {{ strings.calc_auto }} |
| 16 | <span class="block_actions" {% if checked_calc_auto is not empty %} style="display: inline;" {% endif %}>( |
| 17 | <a href="" class="wcml_custom_prices_auto_block_show" title="{{ strings.see_prices|e }}">{{ strings.show }}</a> |
| 18 | <a href="" class="wcml_custom_prices_auto_block_hide">{{ strings.hide }}</a> |
| 19 | )</span> |
| 20 | </label> |
| 21 | |
| 22 | |
| 23 | <label for="wcml_custom_prices_manually[{{ product_id }}]"> |
| 24 | <input type="radio" name="_wcml_custom_prices[{{ product_id }}]" value="1" id="wcml_custom_prices_manually[{{ product_id }}]" class="wcml_custom_prices_input" {{ checked_calc_manually|raw }} /> |
| 25 | {{ strings.set_manually }} |
| 26 | </label> |
| 27 | <div class="wcml_custom_prices_manually_block_control"> |
| 28 | <a {% if checked_calc_manually is not empty %} style="display:none" {% endif %} href="" class="wcml_custom_prices_manually_block_show">» {{ strings.enter_prices }}</a> |
| 29 | <a style="display:none" href="" class="wcml_custom_prices_manually_block_hide">- {{ strings.hide_prices }}</a> |
| 30 | </div> |
| 31 | </div> |
| 32 | |
| 33 | <div class="wcml_custom_prices_manually_block" {% if checked_calc_manually is not empty %} style="display: block;" {% endif %}> |
| 34 | {% for currency in currencies %} |
| 35 | <div class="currency_blck"> |
| 36 | <label> |
| 37 | {{ currency.currency_format|raw }} |
| 38 | </label> |
| 39 | |
| 40 | {% if currency.custom_price['_regular_price'] is empty %} |
| 41 | <span class="wcml_no_price_message">{{ strings.det_auto }}</span> |
| 42 | {% endif %} |
| 43 | |
| 44 | {% if is_variation %} |
| 45 | {% for key, custom_price in currency.custom_price %} |
| 46 | <p> |
| 47 | <label>{{ strings[key] }} ( {{ currency.currency_symbol|raw }} )</label> |
| 48 | <input type="text" |
| 49 | name="_custom_variation{{ key }}{{ currency.custom_id }}" |
| 50 | class="wc_input_price wcml_input_price short wcml{{ key }}" |
| 51 | value="{{ custom_price }}" step="any" min="0" /> |
| 52 | </p> |
| 53 | {% endfor %} |
| 54 | {% else %} |
| 55 | {% for custom_price_html in currency.custom_html %} |
| 56 | {{ custom_price_html|raw }} |
| 57 | {% endfor %} |
| 58 | {% endif %} |
| 59 | |
| 60 | <div class="wcml_schedule"> |
| 61 | <label>{{ strings.schedule }}</label> |
| 62 | <div class="wcml_schedule_options"> |
| 63 | |
| 64 | |
| 65 | <label for="wcml_schedule_auto[{{ currency.currency_code }}]{{ html_id }}"> |
| 66 | <input type="radio" name="_wcml_schedule[{{ currency.currency_code }}]{{ html_id }}" |
| 67 | id="wcml_schedule_auto[{{ currency.currency_code }}]{{ html_id }}" |
| 68 | value="0" |
| 69 | class="wcml_schedule_input" {{ currency.schedule_auto_checked|raw }} /> |
| 70 | {{ strings.same_as_def }} |
| 71 | </label> |
| 72 | |
| 73 | |
| 74 | <label for="wcml_schedule_manually[{{ currency.currency_code }}]{{ html_id }}"> |
| 75 | <input type="radio" name="_wcml_schedule[{{ currency.currency_code }}]{{ html_id }}" |
| 76 | value="1" |
| 77 | id="wcml_schedule_manually[{{ currency.currency_code }}]{{ html_id }}" |
| 78 | class="wcml_schedule_input" {{ currency.schedule_man_checked|raw }} /> |
| 79 | {{ strings.set_dates }} |
| 80 | <span class="block_actions">( |
| 81 | <a href="" class="wcml_schedule_manually_block_show">{{ strings.schedule }}</a> |
| 82 | <a href="" class="wcml_schedule_manually_block_hide">{{ strings.collapse }}</a> |
| 83 | )</span> |
| 84 | </label> |
| 85 | |
| 86 | <div class="wcml_schedule_dates"> |
| 87 | <input type="text" class="short custom_sale_price_dates_from" |
| 88 | name="_custom{% if is_variation %}_variation{% endif %}_sale_price_dates_from{{ currency.custom_id }}" |
| 89 | id="_custom_sale_price_dates_from{{ currency.custom_id }}" |
| 90 | value="{{ currency.sale_price_dates_from|e }}" |
| 91 | placeholder="{{ strings.from|raw }} YYYY-MM-DD" |
| 92 | maxlength="10" pattern="[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3[01])" /> |
| 93 | |
| 94 | <input type="text" class="short custom_sale_price_dates_to" |
| 95 | name="_custom{% if is_variation %}_variation{% endif %}_sale_price_dates_to{{ currency.custom_id }}" |
| 96 | id="_custom_sale_price_dates_to{{ currency.custom_id }}" |
| 97 | value="{{ currency.sale_price_dates_to|e }}" |
| 98 | placeholder="{{ strings.to|raw }} YYYY-MM-DD" |
| 99 | maxlength="10" pattern="[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3[01])" /> |
| 100 | |
| 101 | </div> |
| 102 | </div> |
| 103 | </div> |
| 104 | </div> |
| 105 | {% endfor %} |
| 106 | </div> |
| 107 | |
| 108 | <div class="wcml_automaticaly_prices_block"> |
| 109 | |
| 110 | {% for currency in currencies %} |
| 111 | <label>{{ currency.currency_format|raw }}</label> |
| 112 | |
| 113 | {% if is_variation %} |
| 114 | {% for key, readonly_price in currency.readonly_price %} |
| 115 | <p> |
| 116 | <label>{{ strings[key] }} ( {{ currency.currency_symbol|raw }} )</label> |
| 117 | <input type="text" |
| 118 | name="_readonly{{ key }}" |
| 119 | class="wc_input_price short" |
| 120 | value="{{ readonly_price|e }}" |
| 121 | step="any" min="0" readonly = "readonly" |
| 122 | rel="{{ currency.rate|e }}" /> |
| 123 | </p> |
| 124 | {% endfor %} |
| 125 | {% else %} |
| 126 | {% for readonly_html_price in currency.readonly_html %} |
| 127 | {{ readonly_html_price|raw }} |
| 128 | {% endfor %} |
| 129 | {% endif %} |
| 130 | {% endfor %} |
| 131 | </div> |
| 132 | {% endif %} |
| 133 | |
| 134 | {% if is_variation is empty %} |
| 135 | <div class="wcml_price_error">{{ strings.enter_price }}</div> |
| 136 | {% endif %} |
| 137 | </div> |
| 138 | |
| 139 | {% if is_variation %} |
| 140 | </td></tr> |
| 141 | {% endif %} |