Posted on 22/05/2024 11:42:49
							
							
						 
						Hi Kim,
I got it working by copying this piece of code from the template AddressDeliveryAnonymous_v2.cshtml to template AddressUser_V2_cshtml: 
            @* Use newsletter *@
            @if (GetString("Ecom:Cart.UseNewsletterSubscription") == "True")
            {
                bool? isChecked = null;
                if (GetString("Ecom:Order.Customer.NewsletterSubscribe") == "true")
                {
                    isChecked = true;
                }
                <div class="g-col-12">
                    <div class="form-check">
                        <input class="form-check-input" type="checkbox" name="EcomOrderSubscribeToNewsletter" id="EcomOrderSubscribeToNewsletter" checked="@isChecked" onchange="toggleCreateUser(event);">
                        <label class="form-check-label lh-1" for="EcomOrderSubscribeToNewsletter">
                            <span>@Translate("Keep me updated with deals, news and offers")</span>
                        </label>
                    </div>
                </div>
            }
Thanks for the assistance.
Kind regards,
Caro De Weze