jbringcom Posted July 19, 2016 Share Posted July 19, 2016 Hello All, Anyone can help me to remove quantity wanted on product page? I already remove the code via product.tpl but seems doesnt work. <!-- quantity wanted --> {if !$PS_CATALOG_MODE} <p id="quantity_wanted_p"{if (!$allow_oosp && $product->quantity <= 0) || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}> <label for="quantity_wanted">{l s='Quantity'}</label> <input type="text" min="1" name="qty" id="quantity_wanted" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}{if $product->minimal_quantity > 1}{$product->minimal_quantity}{else}1{/if}{/if}" /> <a href="#" data-field-qty="qty" class="btn btn-default button-minus product_quantity_down"> <span><i class="icon-minus"></i></span> </a> <a href="#" data-field-qty="qty" class="btn btn-default button-plus product_quantity_up"> <span><i class="icon-plus"></i></span> </a> <span class="clearfix"></span> Link to comment Share on other sites More sharing options...
rocky Posted July 20, 2016 Share Posted July 20, 2016 You shouldn't remove the quantity, since the JavaScript needs to use it. You can hide it using CSS though by changing: <p id="quantity_wanted_p"{if (!$allow_oosp && $product->quantity <= 0) || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}> to: <p id="quantity_wanted_p"{*{if (!$allow_oosp && $product->quantity <= 0) || !$product->available_for_order || $PS_CATALOG_MODE}*} style="display: none;"{*{/if}*}> It sounds like your TPL files aren't being recompiled though. Go to the Advanced Parameters > Performance tab and make sure "Recompile templates if the files have been updated" is selected. If you have "Cache" enabled, you'll need to click the "Clear cache" button to see the changes. 1 Link to comment Share on other sites More sharing options...
jbringcom Posted July 20, 2016 Author Share Posted July 20, 2016 Hi Rocky, Its work. Thank you for your help. Link to comment Share on other sites More sharing options...
rocky Posted July 21, 2016 Share Posted July 21, 2016 I'm happy it worked for you. Please edit your first post and add [sOLVED] to the front of the title. 1 Link to comment Share on other sites More sharing options...
JulashDev Posted August 10, 2017 Share Posted August 10, 2017 Hi, I have used the codes. Some page it worked and some it did not changes. Please can you help me. my site is www.julash.com I have also cleared cache. Thanks 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