morp Posted June 7, 2010 Share Posted June 7, 2010 Hello everyone,You can hide the quantity of the product from the product main page leaving only the word "available" or "unavailable"?I've not found such a function in the backend ...Or .. if I have to do it on myself .. What do you recommend? Edit the .tpl file (maybe with a display "none" on the block that shows the quantity of the product?)many thanksbye Link to comment Share on other sites More sharing options...
ugur onur Posted June 7, 2010 Share Posted June 7, 2010 go to admin panel Preferences/Products tab and Display available quantities on product page: Ye or No ..regards 1 Link to comment Share on other sites More sharing options...
morp Posted June 9, 2010 Author Share Posted June 9, 2010 thank you but I's like to leave "available" or "not available", I want only to hide the quantity available, just the number.It's an hybrid way.I think the only thing is to edit .tpl with display block = noneany other advice?thanks Link to comment Share on other sites More sharing options...
ugur onur Posted June 9, 2010 Share Posted June 9, 2010 I got it.. Now go to your themes/yourtheme/product.tpl to edit.Find <!-- number of item in stock --> around line 273and disable from <!-- number of item in stock --> to around line 279 just before the <!-- Out of stock hook -->regards. Link to comment Share on other sites More sharing options...
Adria Laxson Posted April 14, 2012 Share Posted April 14, 2012 How would you recommend disabling this part? I'd like to do the same but am not sure what I should remove exactly just to keep the "items in stock" without the actual quantity: {if ($product->quantity <= $last_qties OR isset($combination.list))} <p id="pQuantityAvailable"{if $display_qties != 1 OR $product->quantity <= 0 OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> <span id="quantityAvailable">{$product->quantity|intval}</span> <span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='item in stock'}</span> <span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='items in stock'}</span> </p> {/if} Link to comment Share on other sites More sharing options...
falconmonkey Posted April 12, 2014 Share Posted April 12, 2014 (edited) Did someone find a fix for this? Edited April 12, 2014 by falconmonkey (see edit history) Link to comment Share on other sites More sharing options...
dioniz Posted April 12, 2014 Share Posted April 12, 2014 Why don't you do it in product.css? Just add display:none; to #quantityAvailable #quantityAvailable { ... ... ... display:none; } Link to comment Share on other sites More sharing options...
DArnaez Posted April 4, 2016 Share Posted April 4, 2016 I have a similar issue but I want to hide "Quantity 1 - +" since my products are only digitals. There is any way to eliminate/ hide this box? 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