Forums / Setting Up Categories, Products, Attributes / Change Color of Attribute Price?

Change Color of Attribute Price?

Locked

Views: 1,246

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
23 Apr 2008, 9:42 AM
#1
hemz avatar

hemz

New Zenner

Join Date:
Dec 2007
Location:
brighton UK
Posts:
40
Plugin Contributions:
0

Change Color of Attribute Price?

sounds like a simple question - but does any one know how to change the colour of the attribute price when in a dropdown?

i have tried adding a span class to

$products_options_display_price= '  ' . $products_options->fields['price_prefix'] .
$currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ' ';

around line 155

in the attributes.php modual but it only seems to be able to convert a   into html. i have amanged to get rid of the parenthesis re: this thread

http://www.zen-cart.com/forum/showthread.php?p=416028

but now i would like it be in bold. Specifically i would like it to be outside the dropdown and appear at the end, but it seems zencart doesnt support this function.

any ideas?

:lamo:

it's better to light a candle than curse the darkness

search engine marketing

23 Apr 2008, 1:14 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Change Color of Attribute Price?

H,
Just two questions I ask you back?

  1. Are you wanting the change the background color of the box in a drop down
    OR
  2. Are you trying to change the Price color, after you click in the drop down box..

Question 11. >

  1. #attrib-1, #attrib-2 {background-color: red;}

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

24 Apr 2008, 10:12 AM
#3
hemz avatar

hemz

New Zenner

Join Date:
Dec 2007
Location:
brighton UK
Posts:
40
Plugin Contributions:
0

Re: Change Color of Attribute Price?

Hi Haredo

I just want the price of the attribute in the box, to be red or bold.

So it stands out from the rest on the attribute description.

:smile:

it's better to light a candle than curse the darkness

search engine marketing

24 Apr 2008, 10:13 AM
#4
hemz avatar

hemz

New Zenner

Join Date:
Dec 2007
Location:
brighton UK
Posts:
40
Plugin Contributions:
0

Re: Change Color of Attribute Price?

it, doesnt really matter if it changes red when it is selected... although that would be a nice effect too...:smile:

it's better to light a candle than curse the darkness

search engine marketing

24 Apr 2008, 1:47 PM
#5
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Change Color of Attribute Price?

H,
I need the actual link to the page in question please.

  1. I need to view the box you are talking about.
  2. Notice the quote up above. This changes the attributes drop down boxes to red.
  3. you will half to adjust to your page, I was using a example from another site..
  4. I could not find a product page on your site/???

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.