X_Defrag_X Posted October 3, 2009 Share Posted October 3, 2009 Hey Everyone, I've recently changed my site, and all the colors for the text has been fine and changed properly through the Stylesheet but one. The special price color is still the red from the last color scheme and i cannot find where to change it. I tried editing the class in the style sheet .specialprice { font-family: Verdana, Arial, sans-serif; color:#b2f100; } i made sure the class in the product_listing.php was right, made sure the style sheet was included in the html, but it still wont change. When i look into the HTML of the page i can clearly see that there is a font tag there that is changing the color, so there must be somewhere in the code that generates the html that is causing this. If anyone has any ideas please let me know. my site is www.cheapbargains.com.au Cheers. Link to comment Share on other sites More sharing options...
medved Posted October 3, 2009 Share Posted October 3, 2009 look for "productSpecialPrice" in the style sheet. Link to comment Share on other sites More sharing options...
X_Defrag_X Posted October 3, 2009 Author Share Posted October 3, 2009 look for "productSpecialPrice" in the style sheet. Thats what was originally there, but that wasnt doing anything so i renamed it, in the stylesheet and in the .php file. Thanks. Link to comment Share on other sites More sharing options...
Xpajun Posted October 3, 2009 Share Posted October 3, 2009 How about you may have missed a change for it in a .php file? My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary Link to comment Share on other sites More sharing options...
satish Posted October 3, 2009 Share Posted October 3, 2009 if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } this html part <span class="productSpecialPrice">' . is responsiblr for css class selection. Lookinto code and if this is the class then look into css. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
X_Defrag_X Posted October 3, 2009 Author Share Posted October 3, 2009 i didnt miss anything in the php. and the css is right. no matter what i change in the 'productspecialprice' bit doesnt affect it at all. even before i changed anything else... im stumped. Link to comment Share on other sites More sharing options...
satish Posted October 3, 2009 Share Posted October 3, 2009 paste your code in those places. also clear history and cache. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
X_Defrag_X Posted October 4, 2009 Author Share Posted October 4, 2009 My CSS SPAN.productspecialprice { font-family: Verdana, Arial, sans-serif; color:#b2f100; } My product_listing.php if (tep_not_null($listing[$x]['specials_new_products_price'])) { $lc_text = ' <s>' . $currencies->display_price($listing[$x]['products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . </s><span class="productspecialprice"> . $currencies->display_price($listing[$x]['specials_new_products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . </span>; } else { $lc_text = ' ' . $currencies->display_price($listing[$x]['products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . ' '; } as far as i can tell by the code, it should be working. BUT when i view the HTML code of the listing you get... <span class="products_price"><s>RRP: $2,499.00</s><br>Our Price: <font color="#A60021" >$1,870.00</font></span> and its got that on each one. As you can see, the "products_price" class is fine and set for the RRP bit, but for the "Our Price" bit, there is no class, but only font tags... the product_listing.php has nothing in the code anywhere that can explain to me why and even WHERE its getting the font color from? Thanks. Link to comment Share on other sites More sharing options...
X_Defrag_X Posted October 4, 2009 Author Share Posted October 4, 2009 i just noticed... In the HTML when i "View Source" the "products_price" class for the RRP and stuff is there. BUT i cant find it anywhere in my product_listing.php would there be another php file somewhere that is controlling the product listings that i may have missed? Cheers. Link to comment Share on other sites More sharing options...
X_Defrag_X Posted October 4, 2009 Author Share Posted October 4, 2009 I FOUND IT! LOL It just so happens, my last post was right. There is a product_listing_col.php that is controlling it, because i had changed the product listing orientation. Thanks for everyones help. i appreciate it. Cheers. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.