idab Posted February 15, 2010 Share Posted February 15, 2010 Hi,How to hide Quantity?please see my attachment (red circle) Link to comment Share on other sites More sharing options...
Radu Posted February 15, 2010 Share Posted February 15, 2010 in themes/prestashop/product.tplreplace: quantity == 0) || $virtual} style="display:none;"{/if}> {l s='Quantity :'} <input type="text" name="qty" id="quantity_wanted" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}1{/if}" size="2" maxlength="3" /> with: quantity == 0) || $virtual} style="display:none;"{/if}> {l s='Quantity :'} <input type="text" name="qty" id="quantity_wanted" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}1{/if}" size="2" maxlength="3" /> Link to comment Share on other sites More sharing options...
idab Posted February 16, 2010 Author Share Posted February 16, 2010 @ Radu :Thanks Link to comment Share on other sites More sharing options...
in2sky Posted March 28, 2010 Share Posted March 28, 2010 I tried this one but didn't work, the quantity is still there. Is there a way to display "Availability: Yes (or No)" instead of "Availability: 25" ? Link to comment Share on other sites More sharing options...
rocky Posted March 29, 2010 Share Posted March 29, 2010 Change lines 271-273 from: {$product->quantity|intval} quantity > 1} style="display:none;"{/if} id="quantityAvailableTxt">{l s='item in stock'} quantity < 2} style="display:none;"{/if} id="quantityAvailableTxtMultiple">{l s='items in stock'} to: {if $product->quantity|intval > 0}{l s='Yes'}{else}{l s='No'}{/if} {*quantity > 1} style="display:none;"{/if} id="quantityAvailableTxt">{l s='item in stock'} quantity < 2} style="display:none;"{/if} id="quantityAvailableTxtMultiple">{l s='items in stock'}*} Link to comment Share on other sites More sharing options...
in2sky Posted March 29, 2010 Share Posted March 29, 2010 Thank you so much, it works!! Link to comment Share on other sites More sharing options...
Izzyflex Posted October 14, 2011 Share Posted October 14, 2011 (edited) Hi, How to hide Quantity? please see my attachment (red circle) i need to do this exact same thing, im running version 1.4.4.1 so the code is a bit different and the solution isnt correct anymore. any suggestions? EDIT- changing the system to use smarty2 instead of smary3 fixed this. i would still like to know where the code is in smarty3 so that i can fix it for future versions. Edited October 14, 2011 by Izzyflex (see edit history) Link to comment Share on other sites More sharing options...
isi_unltd Posted December 12, 2011 Share Posted December 12, 2011 i can't hide quantity box in ps 1.4.6.2 helpp¡¡¡¡¡¡ 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