paby Posted July 24, 2012 Share Posted July 24, 2012 Hello, I sell the major part of my products in single copy (artworks). For these cases, I want that the quantity is no visible for the best, visible but blocked for the worst. Today, we can increase the quantity, what returns a window with " insufficient stock ". But it is heavy and useless in my case. Thank you in advance, the nice guys ! Presta 1.4.7 Link to comment Share on other sites More sharing options...
math_php Posted July 25, 2012 Share Posted July 25, 2012 Hello Make a backup of your product.tpl wich is locate in yoursite/themes/my_actual_theme/product.tpl And then change <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}> To this <p id="quantity_wanted_p" style="display: none;"> Link to comment Share on other sites More sharing options...
paby Posted July 31, 2012 Author Share Posted July 31, 2012 Thank you but I expect Médéric's answer, in french Development topic is better : <p id="quantity_wanted_p"{if (!$allow_oosp && $product->quantity <= 0) OR $product->quantity == 1 OR $virtual OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> Do you think it's possible to make the same thing with the basket ? ( in Ajax, I believe... ) Thank a lot ! 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