shniurs Posted February 11, 2014 Share Posted February 11, 2014 Hello, I want to set a limit to a number of products that can be created in Back Office. For example I want to allow admin to add only 200 products and not more. I was trying to find a SQL query which handles product creation, but couldn't find this. Any ideas how to achieve this? Link to comment Share on other sites More sharing options...
vekia Posted February 11, 2014 Share Posted February 11, 2014 in this case you have to modify productController located in /controllers/front/ProductController.php file you have to define there if condition to check number of products that you've got (for example, you can check number of products with simple count sql query on ps_product table) and if you've got more than 200 - you have to block possibility to add products. Link to comment Share on other sites More sharing options...
shniurs Posted February 12, 2014 Author Share Posted February 12, 2014 Could you be more specific?Any idea where to add if condition?As I was trying to figure this out, but without any luck..I can't find any functions responsible for product creation in ProductController.php Link to comment Share on other sites More sharing options...
Recommended Posts