marketing consent to recovery consent and connection with core

This commit is contained in:
elvira
2026-09-09 14:42:23 +03:00
parent 7a8b9cf4c0
commit 46b3f29674
3 changed files with 18 additions and 20 deletions
+9 -9
View File
@@ -63,21 +63,21 @@ class="bbk-checkout-tab"
form="bbk-address-form"
/>
{{-- One combined marketing opt-in (offers + news + unfinished-order
reminders). Optional, unticked, never required — all of it is
direct marketing under ePrivacy (GR L. 3471/2006 art. 11), so it
needs an explicit opt-in and checkout can't be gated on it.
The bool round-trips via cart.meta (see saveAddress); the proper
consent record — timestamp, policy version — is back-end Task 2. --}}
{{-- Abandoned-cart-recovery opt-in. Optional, unticked, never
required — direct marketing under ePrivacy (GR L. 3471/2006
art. 11), so it needs an explicit opt-in and checkout can't be
gated on it. Narrow scope by design (boboko-core's
setRecoveryConsent) — a general newsletter opt-in, if wanted,
is a separate checkbox. --}}
<label class="bbk-checkbox bbk-checkbox--stacked">
<input
type="checkbox"
name="marketing_consent"
name="recovery_consent"
value="1"
form="bbk-address-form"
{{ old('marketing_consent', data_get($cart, 'meta.marketing_consent')) ? 'checked' : '' }}
{{ old('recovery_consent', data_get($cart, 'meta.recovery_consent')) ? 'checked' : '' }}
>
{{ __('checkout.page.marketing_consent') }}
{{ __('checkout.page.recovery_consent') }}
</label>
</div>