Jump to content

limit the placement of new products


namastè

Recommended Posts

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

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



image.thumb.png.c3701bb9e72cd8ca62a84fdfe012fb0b.png

Link to comment
Share on other sites

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...