namastè Posted September 29, 2021 Share Posted September 29, 2021 Hi everyone, I am trying to limit the insertion of new products by the user. I would like a maximum of 100 products to be entered in the database. I searched for a solution on the forum with no success. The only post resolved dates back to 2011 (topic / 102843) but obviously the solution is no longer applicable to today's PS version. Is anyone kind enough to give me a suggestion on how to change the limit? I hope I have posted in the right section bye thank you Link to comment Share on other sites More sharing options...
namastè Posted October 4, 2021 Author Share Posted October 4, 2021 20 hours ago, ndiaga said: Hi, Witch user ? An employee from the BO or a customer from the Front ? I am creating ecommerce for my customers so they will have limited seller access. I wanted sellers to be able to place a limited number of items in the BO for example 100. Not being familiar with programming on prestashop, I opted for a solution with ajax and php that verifies the number of articles entered in the database in order to disable the article insertion button. For the moment it works and the only solution I have been able to adapt. A notice with the remaining number of items to be entered. Once the limit of articles has been reached, the NEW PRODUCT button disappears Link to comment Share on other sites More sharing options...
namastè Posted October 18, 2021 Author Share Posted October 18, 2021 ...solved. hello everyone! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now