I am currently using nop 2.30 and was hoping some one would know the answer to this, I want to limit the amount of products that my client can add to his site, the reason is because he wants to add as many products as he can and my fear is that he's site will slow the server down causing problems for everyone else on there, I want to limit his products to 1000 and no more, if someone can help me with this I would really appriciate it.
There is no such capability built in. You could customize the code to deal with it, but I think the easiest way might be putting a trigger on the Product or ProductVariant table - raise exception when Id >= 1000
There is no such capability built in. You could customize the code to deal with it, but I think the easiest way might be putting a trigger on the Product or ProductVariant table - raise exception when Id >= 1000
I wouldn't do it because products can be deleted but identifiers will be reserved. I would better add a validation in 'InsertProduct' method of 'ProductService' class.
Many thanks for you're help, would I be able to get a record count from here ? and I know this is a bit cheeky but I am new to MVC3, I dont suppose you would have a small peice of sample code I could work from !! :O))
The code you kindly helped with to return a product count will not work in 2.50 has anything changed the would effect the outcome, the error I get is "No overload for method 'SearchProducts' takes 13 arguments.