how to make a field in admin panel a required field

I’d like to make other fields a required field in the admin panel. this is actually intended for vendors admin panel and i’d like to make a few fields in the add product form required fields.



thanks in advance!



Mike

CS-cart 2.1.2 MV

[quote name=‘buging’]I’d like to make other fields a required field in the admin panel. this is actually intended for vendors admin panel and i’d like to make a few fields in the add product form required fields.



thanks in advance!



Mike

CS-cart 2.1.2 MV[/quote]



Just add the [COLOR=Red]class=“cm-required”[/COLOR] class to the input field you want required.

thanks! sorry but im very new to this. can you tell me where to start? like which file :slight_smile:



appreciate the help!

ive been trying to search…can somebody help me and point out which (TPL?) file to edit? thanks!

found it finally! update.tpl in admin/views



do i need to use hooks or something for this? or is it safe to directly edit?



thanks!