Hammertime Posted December 27, 2021 Share Posted December 27, 2021 All my products are unique and only have quantity of 1. Quantity selector always allows any number. How to limit or prevent selecting more than quantity of 1? Using Prestashop to sell all the items in my home like an online garage sale. I see nothing in stock control or product configuration page to do this. I am using the classic theme PS v 1.7.8.2 Should I then be looking in to editing the ...\_partials\product_add_to_cart.tpl? I would think this is getting the quantity values from somewhere else first but can't find that. Any guidance is appreciated. Link to comment Share on other sites More sharing options...
ComGrafPL Posted December 27, 2021 Share Posted December 27, 2021 Check preferences - > products. Set "Allow ordering of out of stock products" to off. Best option. Link to comment Share on other sites More sharing options...
Hammertime Posted December 27, 2021 Author Share Posted December 27, 2021 Thanks CamGrafPL. I can see where it is the easiest way but it has its issues. Unfortunately this does not prevent the users from selecting more than one and adding it to the cart before the error message taht it is not available in that quantity appears. If the user selects more than 1 and waits a second then a message will appear that is not available in that quantity and the user can roll back to 1. If the user selects more than 1 and adds to cart immediately, it add that quantity to the cart and then displays a message to the user that the item is no longer available. Not a good UX. Link to comment Share on other sites More sharing options...
Hammertime Posted December 27, 2021 Author Share Posted December 27, 2021 Thanks ComGraf, I did not see that the shopping cart also will not proceed unless the quantity is adjusted within the cart also. This will have to do. 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