Forums / Templates, Stylesheets, Page Layout / Change price colour in 'New Products' box

Change price colour in 'New Products' box

Locked

Views: 1,190

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
21 Jan 2010, 8:18 AM
#1
graphic_content avatar

graphic_content

New Zenner

Join Date:
Nov 2008
Location:
Gex, France
Posts:
71
Plugin Contributions:
0

Change price colour in 'New Products' box

Hi there guys,

I am looking for a way to change the color of the price in the New Products box. I have managed to add a new div for the product name but can't seem to get the div in the correct place for the price without breaking the page.

here is the code

$list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsNew centeredContent back"',
    'text' => (($new_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' . $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $new_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $new_products->fields['products_image'], $new_products->fields['products_name'], IMAGE_PRODUCT_NEW_WIDTH, IMAGE_PRODUCT_NEW_HEIGHT) . '</a><br />') . '<div id="newProductName"><a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' . $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $new_products->fields['products_id']) . '">' . $new_products->fields['products_name'] . '</a></div><div id="newDivider"></div><br />' . $products_price);

I'd like to add a div called <div id="newProductPrice">

If you can help that would be fantastico!!!!

Thanks guys
Matt

https://www.graphiccontent.co.uk

Matt Martin
Graphic Content (UK)
www.graphiccontent.co.uk

22 Jan 2010, 9:32 AM
#2
graphic_content avatar

graphic_content

New Zenner

Join Date:
Nov 2008
Location:
Gex, France
Posts:
71
Plugin Contributions:
0

Re: Change price colour in 'New Products' box

Right after a while playing around I have fixed the issue by adding the following to the end of line 71 in the file -

includes/modules/YOUR TEMPLATE/new_products.php

. $products_price= '<div class="newProductPrice">'. $products_price.'</div>');

Hopefully this will be useful to others.

Matt

Matt Martin
Graphic Content (UK)
www.graphiccontent.co.uk