Results 1 to 5 of 5

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

      
  1. #1
    Lurker
    Join Date
    Jan 2004
    Posts
    3
    Rep Power
    0


    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!

  2. #2
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    8


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

  3. #3
    Lurker
    Join Date
    Jan 2004
    Posts
    3
    Rep Power
    0


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

  4. #4
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    8


    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

  5. #5
    Lurker
    Join Date
    Jan 2004
    Posts
    3
    Rep Power
    0


    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.


Similar Threads

  1. Hide/Suppress Specials and New Products
    By kenlyle in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 04-20-2006, 10:57 AM
  2. color of header text in new products and specials boxes
    By dschroedl in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 08-24-2004, 06:35 AM
  3. Specials nad New Products
    By jgkiefer in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 07-24-2004, 08:26 AM
  4. Specials and New Products boxes
    By warrenthewindmill in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 12-01-2003, 10:10 AM
  5. Bug - specials.php page displays to few products
    By Redbeard in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 11-09-2003, 11:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •