Jump to content

Remove Quantity Wanted Option On Product Page


jbringcom

Recommended Posts

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>

 

Remove-quantity-box.jpg

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...