Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

font color when product is available


blr044

Recommended Posts

Did look in stylesheet under *SPAN.markProductOutOfStock but was not the answer. Even tried to add some html to product_info around line 305 (date_available), nothing happen. I would like that piece of text to be the same color as when product was added to store. Below is two links, the first is when product is out and the second is product is in stock.

 

Product out!

 

 

Product in!

 

I would like a color thta would be easier to see.

 

Thanks.

 

blr044

Link to comment
Share on other sites

do you see something like this in your stylesheet.css

 

.stockWarning { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #cc0033; }

 

i am not sure if that control these font colours

 

 

Yes, I did try that one. that did not do what I was looking for.

Link to comment
Share on other sites

  • 8 months later...

I don't know if anyone is still having this problem but I figured out how to fix it today. I really hope this helps someone and they don't spend the amount of time I did on this problem...

 

The file you need to edit is in the catelog/includes/languages/english/product_info.php

 

LINE SAYS:

 

define('TEXT_DATE_AVAILABLE', '<font color="#(COLOR)">This product will be in stock on %s.</font>');

 

EDIT LINE TO:

 

define('TEXT_DATE_AVAILABLE', 'This product will be in stock on %s.');

 

This will allow you to edit the color in the .stockWarning {} class in your cassacading style sheet.

 

I really hope this helps someone else out.... :thumbsup:

Link to comment
Share on other sites

  • 3 weeks later...

I don't know if anyone is still having this problem but I figured out how to fix it today. I really hope this helps someone and they don't spend the amount of time I did on this problem...

 

The file you need to edit is in the catelog/includes/languages/english/product_info.php

 

LINE SAYS:

 

define('TEXT_DATE_AVAILABLE', '<font color="#(COLOR)">This product will be in stock on %s.</font>');

 

EDIT LINE TO:

 

define('TEXT_DATE_AVAILABLE', 'This product will be in stock on %s.');

 

This will allow you to edit the color in the .stockWarning {} class in your cassacading style sheet.

 

I really hope this helps someone else out.... :thumbsup:

 

.stockWarning only affects shoppiong cart page. Even looked at smallText which also refers ot other sections on various pages. Never did think of it being in the language/english/product_info.php. What I did was changed smallText to .productOut and then added it to the stylesheet with it's own code. like the following:

 

Before:

<tr>

<td align="center" class="smallText" colspan="2"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td>

</tr>

 

After:

<tr>

<td align="center" class="productOut" colspan="2"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td>

</tr>

 

But will look at your post to and go from there. Thanks.

 

Bennett

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...