Jump to content

Limit items on site


Teodor

Recommended Posts

No no... I want to add a limit for how many product I can to add in the website.

E.g: if I'll add the max limit of 10 products, just 10 products can add on the website. If I have 10 products on my website and I want to add more products, I want to appear a message "You have reached the maximum product limit on the website." .

 

Now you understand?

 

Link to comment
Share on other sites

The logical place would be controllers/Admin/AdminProductController.php (or classes/product.php) and then to put some validation check there next to the validation checks for new products.

And alternative would be to modify the backoffice template so that the Add product buttons are not visible when the quotum is reached.

But this requires some research. I don't know the details.

You can of course also try search on Addons.

  • Thanks 1
Link to comment
Share on other sites

24 minutes ago, musicmaster said:

The logical place would be controllers/Admin/AdminProductController.php (or classes/product.php) and then to put some validation check there next to the validation checks for new products.

And alternative would be to modify the backoffice template so that the Add product buttons are not visible when the quotum is reached.

But this requires some research. I don't know the details.

You can of course also try search on Addons.

 

Ok, I'll try. Thank very much for your help.

Link to comment
Share on other sites

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...