Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New Products for "month" - text color ONLY


programguru

Recommended Posts

I have a good 8 hours in this attempt to change the product title color in the New Products for "month" on my index page.

 

If I update the stylesheet it will work but will change global colors.

 

I tried inline css in many many many places to no avail.

 

I can't even locate that specific table although Ive found a TON of them already.

 

I must be missing some info.

 

Can anyone fill in the blanks?

 

Ive delt with index.php & products_new.php

 

Can anyone give me some guidance?

 

Thanks in adavance,

 

J :)

Link to comment
Share on other sites

Open catalog/includes/modules/new_products.php

 

Change

  $info_box_contents = array();
 $info_box_contents[] = array('text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')));

to

  $info_box_contents = array();
 $info_box_contents[] = array('text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, '<font color="#FF0000">' . strftime('%B') . '</font>'));

 

You can also use CSS instead of <font> to achieve the same result.

 

Sorted. :thumbsup:

Link to comment
Share on other sites

Now im getting somewhere.

 

The instruct you gave allowed me to change the month color (in the header of the page box), currently January.

 

This is great to know, although it doesn't solve my problem.

 

Heres a demo of what Im trying to change:

 

-------------------------------------------------

| New Products for January |

|-----------------------------------------------|

| Product Image |

| Product Title (this is the title im trying to chg

| Product Price |

| |

-------------------------------------------------

 

If you have any other info I would be abliged.

 

Thanks most! J

Link to comment
Share on other sites

The line you need is here

 

'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])));

 

You can rearrange the order and change many other things. (See the highlight for Product's name)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...