Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to change product price color?

How to change product price color?

Locked

Views: 1,578

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
19 May 2007, 4:40 PM
#1
taydu avatar

taydu

New Zenner

Join Date:
Aug 2006
Posts:
60
Plugin Contributions:
0

How to change product price color?

I have search the forum, read post but haven't find the answer, please help me out.

I'm trying to change the product price color but don't know where to edit in the CSS.

I used the developer firefox extension and found out the id:

h2 #productPrice .productGeneral

went into css but couldn't find where it's, what should I add, and where to add it ?

thank

9 Jun 2007, 4:34 AM
#2
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: How to change product price color?

Starts style sheet line 411

.normalprice, .productSpecialPriceSale {
text-decoration: line-through;
}

.productSpecialPrice, .productSalePrice, .productSpecialPriceSale, .productPriceDiscount {
color: #ff0000;
}

add the style you would like

9 Jun 2007, 4:57 AM
#3
loop4ever avatar

loop4ever

New Zenner

Join Date:
Apr 2006
Posts:
18
Plugin Contributions:
0

Re: How to change product price color?

Hi,

I am a new Zener also. However, I just made a change to my product price color. So hope my experience can help you to achieve your goal.

  1. add a line as follow in your stylesheet.css
    #productPrices { color: #rrggbb; }

  2. in includes/functions/functions_prices.php find
    $show_normal_price = $currencies->display_price($display_normal_price, zen_get_tax_rate($product_check->fields['products_tax_class_id']));
    change it to:
    $show_normal_price = '<span id="productPrices">' . $currencies->display_price($display_normal_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</span>';

loop4ever