Remove email address field in Shipping address section

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 6 años
Hi,

Can someone please help/mention as to how we can remove email id field from the Shipping address section. This field seems to be listed as a mandatory field and we do not see any place to edit this
Hace 6 años
Hello,

Nopcommerce not allowing to enable/disable email field from address from admin side address tab here

So you need to customize in the code.

Thanks,
Jatin
Hace 6 años
in that case is it possible for someone to post a sample code here, please
Hace 4 años
I'm using version 3.7. Is there really no way to disable email?
Hace 4 años
As Jatin says you need to customise
Are you running the source code version and can use Visual Studio ?
Hace 4 años
is there an update to this post?  I have purchasers who place orders for their patients however we do not always have a valid email available for these patients.  is there a way to disable this field when placing order in shipping info?
Hace 4 años
No that is the only field you can not disable given that email is sort of a key field
One simple way is to use a temporary (not working) email using first and last name something like
i.e. [email protected] later on if you get an email for them you can update it
`
Hace 4 años
Another way is hiding email field by css - display none and set any dummy value as Yidna said in previous comment. So user will can't see email field and it not break further process.
Hace 4 años
Thank you how do I hide? Is this in settings?
Hace 4 años
Edit the .cshtml file
add the attributes on the field
style="display:none"
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.