Jump to content

Remove stock green box product page


Recommended Posts

Hello i would like to remove the green box that appears with a number 1 when a product is in stock but keep the message when it's out of stock.

 

NkIlq.jpg

<!-- availability or doesntExist -->
			<p id="availability_statut"{if !$PS_STOCK_MANAGEMENT || ($product->quantity <= 0 && !$product->available_later && $allow_oosp) || ($product->quantity > 0 && !$product->available_now) || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}>
				{*<span id="availability_label">{l s='Availability:'}</span>*}
				<span id="availability_value" class="label{if $product->quantity <= 0 && !$allow_oosp} label-danger{elseif $product->quantity <= 0} label-warning{else} label-success{/if}">{if $product->quantity <= 0}{if $PS_STOCK_MANAGEMENT && $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{elseif $PS_STOCK_MANAGEMENT}{$product->available_now}{/if}</span>
			</p>

I think the code is this part but i cant remove only that 1 

 

Can anyone help me with that?

 

Thanks

 

Link to comment
Share on other sites

Hello thank you very much

 

I had to change a little bit .. i created a new css class "no-display" and added display:none !important; and it worked .. if i add 

{else} label-success" style="display: none;{/if}

in HTML the last style will not show.

 

Thank you problem solved i dont know how i can be so blind and didnt see the label-success

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