Jump to content

Return the quantity like not visible or unchangeable


paby

Recommended Posts

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

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

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 !
:rolleyes:
Link to comment
Share on other sites

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...