Jump to content

How do i remove the in stock green baner


Recommended Posts

In themes/your_theme/product.tpl around line 212 find this code

<span id="availability_value"{if $product->quantity <= 0 && !$allow_oosp} class="warning_inline"{/if}>{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}</span> 

And comment it out using {*  and *} like this

{*<span id="availability_value"{if $product->quantity <= 0 && !$allow_oosp} class="warning_inline"{/if}>{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}</span> *}
Link to comment
Share on other sites

  • 2 weeks later...

I tried it the way listed above (removing and commenting out the selected code) and it didn't work.
But I found that editing the CSS did work.

15x0sk4.png

In the default template folder open the CSS folder. Locate the product_list.css file and open in a text editor.

Locate line 14 (or search for) the following
          ul.product_list .availability span.available-now

In your product_list.css file add this edit on line 16 before the closing tag }

display: none !important;


This will remove the green banner for sure!
 

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...