Hi, I'm trying to add some additional validation to the product admin page.
I could modify the ProductValidator directly, however, I need to reference code within my plugin, which I can't access from the core ProductValidator.
Is there a way I can create my own ProductValidator within my plugin and get the admin page to use mine rather than the default? Alternatively, is it possible to extend the default ProductValidator from my plugin?
I'm not sure if that's going to help me. I need access to a custom service which is defined within my plugin. So really I would need to add my custom service as a parameter of the ProductValidator, but Nop.Admin can't see my plugin code.
I see what you're saying, I've been able to get an instance of my plugin, but how would I get an instance of my custom service (called IUrlSlugService) from the plugin instance?
Hi,i am trying to add some validation for Admin and customers block like(Name,Contact Number and others ).how we can add validation for ADD NEW PRODUCT.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.