marcellolaforgia Posted May 8, 2014 Share Posted May 8, 2014 I have the need to eliminate the quantity in the product page. How can I do? thanks Link to comment Share on other sites More sharing options...
vekia Posted May 8, 2014 Share Posted May 8, 2014 you mean field where customer can insert quantity of product he want to add to cart? Link to comment Share on other sites More sharing options...
marcellolaforgia Posted May 8, 2014 Author Share Posted May 8, 2014 I will attach this file to see what I'm talking about... Link to comment Share on other sites More sharing options...
vekia Posted May 8, 2014 Share Posted May 8, 2014 open product.tpl file located in your theme directory change code: {if ($display_qties == 1 && !$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && $product->available_for_order)} <!-- number of item in stock --> <p id="pQuantityAvailable"{if $product->quantity <= 0} 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'}</span> <span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='Items'}</span> </p> {/if} to: {* {if ($display_qties == 1 && !$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && $product->available_for_order)} <!-- number of item in stock --> <p id="pQuantityAvailable"{if $product->quantity <= 0} 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'}</span> <span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='Items'}</span> </p> {/if} *} Link to comment Share on other sites More sharing options...
marcellolaforgia Posted May 9, 2014 Author Share Posted May 9, 2014 Dear Vekia, I've tried your solution and it works. Now I'm setting other features. Thank you and see you soon Marcello Link to comment Share on other sites More sharing options...
vekia Posted May 10, 2014 Share Posted May 10, 2014 you're welcome :-) Im so glad to hear that i could help you a little i marked this topic as solved with regards, Milos Link to comment Share on other sites More sharing options...
parsifal Posted May 16, 2014 Share Posted May 16, 2014 There is an easier and more orthodox way to achieve this, instead of modifying .tpl code: http://doc.prestashop.com/display/PS16/Products+Preferences#ProductsPreferences-Productpagepreferences Display available quantities on the product page --> Set to NO 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