Need to turn off "Please provide a name" from ProductModel in my plugin view

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hello,

I'm using nopCommerce 3.90 with source.

I created a plugin that uses Nop.Admin.Models.Catalog.ProductModel.  The plugin gets activated from an Admin menu option.

When I return to my view from the ActionResult(Post), there is a red message on the screen that says "Please provide a name".  It's on the top of the screen under any success notification or error notification.

I narrowed it down to coming from admin.catalog.products.fields.name.required in the Languages String resources.  The only place that it is refenced is in the Presentation\Nop.Web\Administration\Validators\Catalog\ProductValidator.cs.

Since I don't use the Name property in the ProductModel, Is there any way to stop that message from appearing in my plugin view?

Any help that anyone can provide to figure this out would be gratefully appreciated.

Thanks,
Tony
6 years ago
Hello Tony,

If you are using product model of default nopCommerce then they have validation on product name field as required.

Open ProductValidator.cs and check line no 14

Thanks,
Jatin
6 years ago
Jatin,

I don't see how that helps me to eliminate that message from appearing.

Thanks,
Tony
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.