Disable Email from Address

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
1 ano atrás
Customer address contain last name and email as required  . i don't want these two field as required.  these fields be optional  in my address form how  to disable these fields. what to do. i am comment out  these fields
     @*<div class="col-sm-3 col-md-4">
                <nop-required />
                <span asp-validation-for="Email"></span>     </div>*@
from _CreateOrUpdateAddress.cshtml    and also

        //[DataType(DataType.EmailAddress)]
        //[NopResourceDisplayName("Address.Fields.Email")]
        public string Email { get; set; }
these two line from AddressModel.cs  but it still not work.

how to make these two field optional not required.
Thanks in advance. i am using nop 4.40.4
1 ano atrás
the way will not be easy. you need to refactor logic of whole project that related to Email (most likely Message Template), yo need to use email address customer email address to send email and for guest checkout you need to take email address. other wise email will not work
1 ano atrás
Thanks, Email is not possible in this way what about last name. so we can hide last name in the address and in the shipping address.is that any way to hide the last name etc.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.