refactor: derive VK description postfix from measure_name, drop global postfix setting
Each product's description is now built as "Name (цена за M.)" using its own measure_name. The global description_postfix setting is removed — it couldn't handle per-product units. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -11,24 +11,15 @@
|
||||
{% endif %}
|
||||
|
||||
<article class="card">
|
||||
<h2 style="font-size:1.1rem; margin-bottom:1.25rem;">Настройки цены и описания</h2>
|
||||
<h2 style="font-size:1.1rem; margin-bottom:1.25rem;">Настройки цены</h2>
|
||||
<form method="post" action="/sync/settings">
|
||||
<div class="grid" style="grid-template-columns: 1fr 1fr; gap:1.5rem;">
|
||||
<label>
|
||||
Множитель цены
|
||||
<input type="number" name="price_multiplier" step="0.0001" min="0.0001"
|
||||
value="{{ config.price_multiplier if config else '1' }}"
|
||||
placeholder="1">
|
||||
<small class="text-muted">Цена из Эвотор умножается на это значение перед отправкой в ВК. По умолчанию: 1.</small>
|
||||
</label>
|
||||
<label>
|
||||
Постфикс описания
|
||||
<input type="text" name="description_postfix"
|
||||
value="{{ config.description_postfix if config and config.description_postfix else '' }}"
|
||||
placeholder="цена за 10г.">
|
||||
<small class="text-muted">Если заполнено, добавляется к описанию: «Название (постфикс)». Оставьте пустым, чтобы не добавлять.</small>
|
||||
</label>
|
||||
</div>
|
||||
<label style="max-width:320px;">
|
||||
Множитель цены
|
||||
<input type="number" name="price_multiplier" step="0.0001" min="0.0001"
|
||||
value="{{ config.price_multiplier if config else '1' }}"
|
||||
placeholder="1">
|
||||
<small class="text-muted">Цена из Эвотор умножается на это значение перед отправкой в ВК. По умолчанию: 1.</small>
|
||||
</label>
|
||||
<button type="submit" style="margin-top:1rem;">Сохранить</button>
|
||||
</form>
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user