JS101 Posted May 22, 2014 Share Posted May 22, 2014 Hi, I'm new to Prestashop. I will be selling flyers through my site that can purchased in quantities of 250, 500 and 1000. So I have decided to make an attribute called quantity and use that instead of the Quantity field that shows up on the product page. Is there any way to remove the Quantity field from the product page so that it does not show up there? Thanks in advance for your help! Link to comment Share on other sites More sharing options...
vekia Posted May 22, 2014 Share Posted May 22, 2014 go to product.tpl file and search for <label>{l s='Quantity:'}</label> <input type="text" 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}" /> then remove this code or just comment out it with {* comment *} method Link to comment Share on other sites More sharing options...
JS101 Posted May 23, 2014 Author Share Posted May 23, 2014 Thank you! It worked!! Link to comment Share on other sites More sharing options...
vekia Posted May 23, 2014 Share Posted May 23, 2014 you're welcome :-) yeap it works, i tested it before provide solution topic marked as solved. with regards, Milos 1 Link to comment Share on other sites More sharing options...
richdavids Posted March 10, 2015 Share Posted March 10, 2015 Hi Milos, Any chance you could point me towards the likely location of the product.tpl file? I've got one here, but searching this string doesn't yield any results for me. Cheers Rich Link to comment Share on other sites More sharing options...
FerrA Posted June 28, 2016 Share Posted June 28, 2016 And if I wanted to show only the quantities but do that not editable via keyboard? I would like to remove the input and increase or decrease the amount only with states + and -. How I can do this? Link to comment Share on other sites More sharing options...
fx1 Posted July 23, 2016 Share Posted July 23, 2016 (edited) Hi, I also made a quantity list using a combination but I don't see how to "connect" it. Right now I have a drop down list of quantity like 500, 1000, 2000, 5000 on the product page but selecting any do no make update on the quantity. Thank your help or quick tips where to look for that. Julien Edited July 23, 2016 by fx1 (see edit history) Link to comment Share on other sites More sharing options...
sstucl Posted January 15, 2017 Share Posted January 15, 2017 Hello, can you check why I'm getting error when I click on + or -: The requested content cannot be loaded. Please try again later. http://party.si/si/baloni-s-helijem-darilo-folija-balon-v-paketu/17529-mickey-minnie-i-love-you-bbalon-v-paketu.html Link to comment Share on other sites More sharing options...
Scartman Posted January 22, 2017 Share Posted January 22, 2017 go to product.tpl file and search for <label>{l s='Quantity:'}</label> <input type="text" 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}" /> then remove this code or just comment out it with {* comment *} method I would like to do this for only some products in my store. I sell packaged meat, for which I have created combinations and don't want the "quantity" selector, and I also sell individual items like milk and cheese, for which there are no combinations and I need the "quantity" field. How can this be done? 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