This is a discussion on New Products box - I want Specials Red Strikeout Text within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, We've created some specials on our site. IN the Whats New box and the Specials box, all looks fine ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, We've created some specials on our site. IN the Whats New box and the Specials box, all looks fine - the old price is struck out and the new price in red. However, in the New Products box (the main large box on the page) only new pricing is shown, and it is in regular black text. Any ideas how i can edit this to get the strikeout text and red price? Thanks! |
|
#2
| ||||
| ||||
| Create a new class in stylesheet.css using the style you want for instance and notice i have used the tag "text decoration:underline" .newclassname { background: #put hex addy of box background color here; font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #put hex addy of red here text-decoration: underline } Then in the .PHP file which builds the particular box in which you want to have text underlined, change it to use this style instead of the old one. for instance change the <td class="????????????"> to whatever you named the new class. $boxContent .= ' <tr>' . ' <td class="newclassname"> Cliff.... |
|
#3
| |||
| |||
| Thanks red_fraggle however, my problem doesn't lie in just changing the css style. I want to show the old price in strikeout text, AND show the special pricing in red. The specials module already does this, but the new products one doesn't. They look a bit dumb when they are on the same page. My problem lies more in the fact that I'm not quite sure how to decipher the codes which draw info from the database..... |
|
#4
| ||||
| ||||
| so you want it like this? http://host127.ipowerweb.com/~cafeprod/ look at specials box on right hand column and tell me if thats what ya mean? Red_fraggle |
|
#5
| |||
| |||
| Yes that's exactly what I want. And I get that exactly fine on the specials module. However, in the new products module (center box in the standard OSC install), it doesn't do that. If I have a product on special, it only shows the new price, without the old price struck out and without the new price in red text. Does that make sense? Unfortunately, I don't have a special on at the moment, and can't show it to you. I tried copying the bits of code over and stuff, but obviously I'm doing something wrong. ![]() |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hide/Suppress Specials and New Products | kenlyle | osCMax v2 Customization/Mods | 1 | 04-20-2006 09:57 AM |
| color of header text in new products and specials boxes | dschroedl | osCMax v1.7 Discussion | 1 | 08-24-2004 05:35 AM |
| Specials nad New Products | jgkiefer | osCMax v1.7 Discussion | 0 | 07-24-2004 07:26 AM |
| Specials and New Products boxes | warrenthewindmill | osCMax v1.7 Discussion | 2 | 12-01-2003 10:10 AM |
| Bug - specials.php page displays to few products | Redbeard | osCMax v1.7 Discussion | 1 | 11-09-2003 11:11 AM |