voodoo1967 Posted August 12, 2009 Share Posted August 12, 2009 I am setting up a shop, and I have my quantities (they come in packs of 20) this is fine for what I need , BUT for some reason I also get the default quantity box with the product , how I remove this default Quantity: box ?for example:-Colour = whiteSize = smallNumber of Packs = 10Quantity: = 1 - it is this bit I need to removekind regardsVoodoo Link to comment Share on other sites More sharing options...
fe1lho Posted August 12, 2009 Share Posted August 12, 2009 I hope I've understand what you need.Into the BO into Preferences/Products, you can choose the option NO onthe label 'Display Quantity on product page'Is it correct ?This is for PS 1.2 Link to comment Share on other sites More sharing options...
voodoo1967 Posted August 12, 2009 Author Share Posted August 12, 2009 Hi fe1lho,Sorry I should have said yes it's version 1.2.I already have the "Display Quantity on product page": set to NO I also have the "Enable Stock Management" set to NOI also have the "Allow ordering out-of-stock product" set to NOAny ideas - is there some sort of other over ride , that maybe is in place that I have missed? Link to comment Share on other sites More sharing options...
fe1lho Posted August 12, 2009 Share Posted August 12, 2009 Are you using another template rather then the prestashop one ?May be can you give the URI to see the current display. Link to comment Share on other sites More sharing options...
voodoo1967 Posted August 12, 2009 Author Share Posted August 12, 2009 its the default out of the box template - it's a dummy shop Im using to play with. I've just sent you a PM re the url Link to comment Share on other sites More sharing options...
jhnstcks Posted August 12, 2009 Share Posted August 12, 2009 To remove the quatity box from the product page you will need to edit the product.tpl directly and delete the code that corresponds to area. About line 255 should be the right area. 1 Link to comment Share on other sites More sharing options...
fe1lho Posted August 12, 2009 Share Posted August 12, 2009 I've also test this on my PS 1.2 version, and the result is the same.So if I understand correctly, I've said no on Display the product quantity on the Product list.And when I display the product list, I see the quantities.So is it a BUG ? Link to comment Share on other sites More sharing options...
voodoo1967 Posted August 12, 2009 Author Share Posted August 12, 2009 re To remove the quatity box from the product page you will need to edit the product.tpl directly and delete the code that corresponds to area. About line 255 should be the right area.Sorry I didnt read this - I will edit the file and see how I get on - thanks in advancevoodoo Link to comment Share on other sites More sharing options...
voodoo1967 Posted August 12, 2009 Author Share Posted August 12, 2009 Im a bit of a newbie to PS , does anyone know who this needs to be reported to ?Also just to clarify , I made the changes as suggested commented out the section around line 255 - and it seems to work ok. Link to comment Share on other sites More sharing options...
Cornel Posted September 1, 2009 Share Posted September 1, 2009 can you post the line which needs to be removed please ? Also the product.tpl is located on the theme folder ? Link to comment Share on other sites More sharing options...
voodoo1967 Posted September 1, 2009 Author Share Posted September 1, 2009 From memory the product.tpl is in your theme folder , and like the posts have already said the code to comment out is around line 255, it is not just one line to remove - it is a section of code. If you know PHP and HTML you will be able to to recognise it.For info - I have since re enabled this section of code and have got around my problem of price / attributes by using the product combi generator instead. Link to comment Share on other sites More sharing options...
BallooningMarvelous Posted September 1, 2009 Share Posted September 1, 2009 I needed to do the same, I'm using the gloss theme and it was line 167 I removed, for anyone using that theme. How can I align the price to the centre of the box, instead of being at the right hand side? Link to comment Share on other sites More sharing options...
BWT Posted August 4, 2012 Share Posted August 4, 2012 (edited) you can try changing it to something like... v1.4.8.2 <p id="quantity_wanted_p"{if (!$allow_oosp && $product->quantity <= 0) OR $virtual OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> </p> Edited August 4, 2012 by tjg (see edit history) Link to comment Share on other sites More sharing options...
BWT Posted August 4, 2012 Share Posted August 4, 2012 To remove the quatity box from the product page you will need to edit the product.tpl directly and delete the code that corresponds to area. About line 255 should be the right area. This was my suggestion too in another post! Link to comment Share on other sites More sharing options...
indus Posted August 4, 2012 Share Posted August 4, 2012 Probably prestashop didnt have the option to disable in older versions from BO. Anyways, we should stop bumping old threads. Link to comment Share on other sites More sharing options...
BWT Posted August 5, 2012 Share Posted August 5, 2012 The hole reason I looked it up in the first place is because I needed to remove the box, however using a 3rd party theme and disabling it int he back office did nothing. Even though the suggestion i posted does remove the box it still doesn't work right comes back with a null error? Any suggestions about that?? 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