Jump to content

Limit Product Uploads


Steve Joms

Recommended Posts

Sorry Guys for the incomplete info.

 

My PS version is  1.6.1.11

 

I want to limit the product count that can be uploaded inside PS. For example i want to limit just 50 products that can be uploaded, so more than 50 products PS will not allow you to add more.

Link to comment
Share on other sites

Not an easy one.
I would try to edit the Product class, add method (just to edit one place instead of several)

In that method, use a custom query to see how many products the store has, something like SELECT COUNT(id_product) from ps_product

And if it's 50 or more, return false, it should spawn an error preventing the product creation
 

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