inventory-application icon indicating copy to clipboard operation
inventory-application copied to clipboard

How to add Category of product under add product.?

Open parth-vaidhya-au8 opened this issue 3 years ago • 1 comments

You have made product category filed as 'select' because of which I am to able to add category to my product at the time of creating the new product. Please help with this.! @moelashmawy

parth-vaidhya-au8 avatar Feb 16 '21 10:02 parth-vaidhya-au8

Go to the "controllers" folder. Next go to "userController". Under "newUser" instance you can see as an argument an object has been passed. In the object, you can see a key, named "isAdmin". Change that boolean value into 'true' and then go to the website and register a new user. That user will automatically become an Admin. After that remember you should change that boolean value again into 'false' otherwise all the users will become admins.

As an admin, you can add product categories from the dashboard.

mastrmind-dev avatar Mar 01 '22 05:03 mastrmind-dev

You have made product category filed as 'select' because of which I am to able to add category to my product at the time of creating the new product. Please help with this.! @moelashmawy

please see @mastrmind-dev comment, i know it's not the best practice and not secure to do so but that's how it's done in this project!

moelashmawy avatar Oct 04 '22 18:10 moelashmawy