Confidentialité
{% if customer %}
<form method="post" action="/account" accept-charset="UTF-8" class="marketing-preference-form">
<input type="hidden" name="form_type" value="customer" />
<input type="hidden" name="utf8" value="✓" />
<input type="hidden" name="customer[tags]" value="{{ customer.tags | escape }}" />
<label>
<input type="checkbox" name="customer[accepts_marketing]" {% if customer.accepts_marketing %}checked{% endif %}>
Je souhaite recevoir les newsletters et offres exclusives 💌
</label>
<button type="submit">Mettre à jour mes préférences</button>
</form>
{% endif %}
.marketing-preference-form { margin-top: 30px; padding: 20px; border: 1px solid #ccc; border-radius: 10px; } .marketing-preference-form label { display: flex; align-items: center; gap: 8px; font-size: 16px; } .marketing-preference-form button { margin-top: 10px; background-color: #000; color: white; padding: 10px 18px; border: none; border-radius: 5px; cursor: pointer; }