Jump to content

[SOLVED] Change product availability color?


Recommended Posts

Hi,

If you only have one language, you can edit product.tpl and use something like this:

 

{if $product->available_for_order == 'envio em: 2 dias'}class="yellow"{else if $product->available_for_order == 'In stock'} class="green">{/if}

 

This, of course, for the availability wrapper. Note that you might have other classes there, take those into account

Link to comment
Share on other sites

Yes but you can chnage this in CSS, edit product.css located in themes/default/css.

 

Here is the code to change in this code I have made the background red.

 

 

 

 

 

#availability_statut #availability_value {

background-color:#E30101;

color:#ffffff;

text-shadow:none;

padding:0 10px;

text-transform: uppercase;

font-size:10px;

font-weight: bold;

display:inline;

text-align:center

}

Edited by tdr170 (see edit history)
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...