Stop Customers Editing their Profile/s data: Vat

Hello to All !

Short Recap : we are talking about a “Closed To Public B2B Store with Admin only Activations”
Part of a network/Multisite on Latest CS Cart vers

Problem/s : it’s Basically One but maybe, due to a MisConfiguration of the Very Long Registration Form -It’s For companies with Different addresses and VAT Numbers ( all Within One Country ) so I had to do some TLC ( not very Ortodox ) on registration Form and Fields- problems are two Plural . but here we are :slight_smile:

it Does Happens VAT it’s NOT Loaded on the CART Total, ANY time this Happens we see on the Logs said Customer HAS edited its Profile.

What I Look for : A way/ Mean to stop the Registered and Approved Customers to Edit their Profile, Password Apart or, at the worst cas scenario, to Lock them Out entirely from their
Profile Page ( filled then by an operator ) Password generation too. -provided upon requests-
we do not store any sensible detail and 90% of them pay tru bank once a month their order/s -

-I do understand the thing of Vat not adding on ( Very few ) Orders, even if Upon some customer"magikk" can be an alarm.

Any Tip or ‘enquire’ is very Welcome.

Sorry for my Shakespearians English :grimacing:

Cheers, have a nice one

really, there is no way ?

@CS-Cart_team :smiling_face_with_tear: really no way

?

Hi there!

Unfortunately, it is not possible to do this out of the box. An additional code modification is required.

I recommend clearing the fields that you’d like to prohibit from updating in the update_user_pre hook of the fn_update_user function, if the request is made from the storefront and the user type of the person making the changes is not admin/vendor.

1 Like

OK,
we’ve possibly the smartest/dumbest customer on eart -lol-

Even if it doesn’t solve my very specific (particular) request
now I know what to look for and, most important, to ask for.

Thanks, Great as Usual


Closed

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.