OneManArmy Posted November 24, 2009 Share Posted November 24, 2009 How to do if i don't want to display the quantity product on Front Office or my company the quantity product is unlimited? Link to comment Share on other sites More sharing options...
andrew Posted November 24, 2009 Share Posted November 24, 2009 In the backoffice,Preferences tab, products settings.Set "display available quantities on product page" to No.- Andrew Link to comment Share on other sites More sharing options...
OneManArmy Posted November 24, 2009 Author Share Posted November 24, 2009 In the backoffice,Preferences tab, products settings.Set "display available quantities on product page" to No.- Andrew so if my products quantity is unlimited, then how to disable the quantity value? Link to comment Share on other sites More sharing options...
rocky Posted November 25, 2009 Share Posted November 25, 2009 It is not possible to disable the quantity for a product. The only solution I can think of the moment without extensive modifications to Prestashop is to enter a really big number like 1000000 that would take a very long time to sell out. You could then change line 271 of product.tpl in your theme's directory to something like: {if product->quantity > 10000}unlimited{else}{$product->quantity|intval}{/if} You can change 10000 to a number that is bigger than you would ever enter as the quantity, but small enough that it would take a long time to count down to it. 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