Steve Joms Posted August 2, 2017 Share Posted August 2, 2017 Hi All, Can I know how can I limit the product uploads in my prestashop? I tried to search in forums but cannot find one for this question. Cheers! Link to comment Share on other sites More sharing options...
Scully Posted August 2, 2017 Share Posted August 2, 2017 Which prestashop version do you use? How exactely do you upload products? More details would be helpful. Link to comment Share on other sites More sharing options...
NemoPS Posted August 2, 2017 Share Posted August 2, 2017 What do you want to limit about that? If it's the filesize, there is a back office option, but we need to know your ps version first 1 Link to comment Share on other sites More sharing options...
Steve Joms Posted August 3, 2017 Author Share Posted August 3, 2017 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 More sharing options...
NemoPS Posted August 4, 2017 Share Posted August 4, 2017 Wait, so you mean you want to limit the number of products that can be created? Link to comment Share on other sites More sharing options...
Steve Joms Posted August 4, 2017 Author Share Posted August 4, 2017 Hi NemoPS, Yes, that's correct. Link to comment Share on other sites More sharing options...
NemoPS Posted August 4, 2017 Share Posted August 4, 2017 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_productAnd if it's 50 or more, return false, it should spawn an error preventing the product creation 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