01K Posted April 29, 2018 Share Posted April 29, 2018 Hi there! We offer only exclusive products which are sold only by one item. So the Presta should work in such way: 1). Disabled quantity field in product view 2). There should be only one item in stock. Once it's sold - the product can't be purchased once more by another customer. How it could be achieved? As I understand in Catalog->"Stock" or "Product"-> "stock" tab "1" should be entered? But in such way case "1)." is not executed. The quantity field is still available... Link to comment Share on other sites More sharing options...
NemoPS Posted April 29, 2018 Share Posted April 29, 2018 There is no way to disable the quantity field from the back office, you can only do it by editing product.tpl and removing the code. What's your prestashop version? Are you using a custom template? Link to comment Share on other sites More sharing options...
01K Posted April 30, 2018 Author Share Posted April 30, 2018 Hi! It's 1.7.3.1 , template is non default Link to comment Share on other sites More sharing options...
01K Posted May 1, 2018 Author Share Posted May 1, 2018 So is it possible do not allow to order exceeded quantity which is in stock? Link to comment Share on other sites More sharing options...
NemoPS Posted May 3, 2018 Share Posted May 3, 2018 can you share your site's url? You can hide the field with css as well Link to comment Share on other sites More sharing options...
01K Posted May 3, 2018 Author Share Posted May 3, 2018 Yes, that it is in test mode: link Link to comment Share on other sites More sharing options...
NemoPS Posted May 7, 2018 Share Posted May 7, 2018 Try with .qty{display:none} in custom.css Link to comment Share on other sites More sharing options...
01K Posted May 7, 2018 Author Share Posted May 7, 2018 OK, thank you! But it will only work as a front-end "mask", hiding the inputs from the view. While programmatically this functionality isn't disabled. Should it be as a future request? Link to comment Share on other sites More sharing options...
01K Posted May 8, 2018 Author Share Posted May 8, 2018 By the way, what will be if one product will be ordered the same day a few times? Once it's ordered it should be out of stock and order button must be disabled. How it could be done? Link to comment Share on other sites More sharing options...
NemoPS Posted May 16, 2018 Share Posted May 16, 2018 That's an issue prestashop already has, it only deducts quantities on order validation. You can mark the default order status as valid, so that it deducts the quantity immediately after purchase Link to comment Share on other sites More sharing options...
01K Posted May 17, 2018 Author Share Posted May 17, 2018 22 hours ago, NemoPS said: You can mark the default order status as valid, Could you please describe it with details or with a screenshot. Thank you! Link to comment Share on other sites More sharing options...
NemoPS Posted May 17, 2018 Share Posted May 17, 2018 https://www.screencast.com/t/aAeqkKbfkh 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