Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Change Price listing color

Change Price listing color

Locked

Views: 1,777

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
20 Nov 2009, 10:36 PM
#1
riscphree avatar

riscphree

New Zenner

Join Date:
Sep 2007
Posts:
19
Plugin Contributions:
0

Change Price listing color

I'd like to change the color of the prices in the product category listings.

I edited my CSS to make td.productListings-data red, but that changed both the product's descriptions and price to red. Is there something for just the price?

20 Nov 2009, 11:18 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Change Price listing color

A link directly to the page you want adjusted

Zen-Venom Get Bitten

25 Nov 2009, 3:55 AM
#4
riscphree avatar

riscphree

New Zenner

Join Date:
Sep 2007
Posts:
19
Plugin Contributions:
0

Re: Change Price listing color

Any ideas on this one?

25 Nov 2009, 5:11 AM
#5
aliepinieks avatar

aliepinieks

Zen Follower

Join Date:
Jun 2009
Location:
Brisbane, QLD AUS
Posts:
209
Plugin Contributions:
0

Re: Change Price listing color

this is how i did it:

look for the line 112 in includes/modules/YOURTEMPLATENAME/product_listing.php...

$lc_text = $lc_price;

now change it to something like this...

$lc_text = '<span class="greenText">' . $lc_price . '</span>';

then add the classname "greenText" to your CSS file, and adjust properties to suit. this won't affect formatting for special prices etc. as that is defined elsewhere. to do this requires work on the function that actually gets the prices themselves.

hope this helps.

25 Nov 2009, 5:41 AM
#6
riscphree avatar

riscphree

New Zenner

Join Date:
Sep 2007
Posts:
19
Plugin Contributions:
0

Re: Change Price listing color

Oh thank you. That worked!