osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

New Products box - I want Specials Red Strikeout Text

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-22-2004, 04:29 AM
Lurker
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kacheng
Default New Products box - I want Specials Red Strikeout Text

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 03-03-2004, 01:20 PM
red_fraggle's Avatar
Active Member
 
Join Date: Feb 2004
Location: wilmington, NC
Posts: 319
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
red_fraggle
Default

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....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-03-2004, 01:38 PM
Lurker
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kacheng
Default

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.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 03-04-2004, 10:50 AM
red_fraggle's Avatar
Active Member
 
Join Date: Feb 2004
Location: wilmington, NC
Posts: 319
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
red_fraggle
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 03-04-2004, 11:27 AM
Lurker
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kacheng
Default

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 09:28 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax