osCmax v2.5 User Manual
Results 1 to 5 of 5

MS2-Max Bug in main page specials???

This is a discussion on MS2-Max Bug in main page specials??? within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; The specials box in the center of my main page only displays the 3 most recently added products rather than ...

      
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    42
    Rep Power
    0


    Default MS2-Max Bug in main page specials???

    The specials box in the center of my main page only displays the 3 most recently added products rather than rotating through the list of entire store specials like the box that displays only 1 product at at time on the right.

    Is this a bug or do I have something configured wrong?

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    No, it is not a bug. You need to configure the box to show more than 3 specials. Do this in the admin under:

    Maximum Values - Special Products

    Set it to more than 3

    It does not rotate through specials. That is not a feature of center box.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Anonymous
    Guest


    Default

    http://forums.oscommerce.com/index.php?showtopic=91342 is very similar to what you're talking about. You might be able to make that work on the specials.

  4. #4
    Anonymous
    Guest


    Default

    Thank you Msasek and Guest! I've been wanting that center box to rotate for a long time now! That link Guest, is what gave me the code change.

    Here it is for those of you interested:

    in catalog/includes/modules/default_specials.php

    Change this:

    $new = tep_db_query("select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s where p.products_status = '1' and s.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and s.status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_SPECIAL_PRODUCTS);


    to this:

    $new = tep_db_query("select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s where p.products_status = '1' and s.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and s.status = '1' order by RAND() limit " . MAX_DISPLAY_SPECIAL_PRODUCTS);


    It works, it actually works!!

  5. #5
    Member
    Join Date
    Sep 2003
    Posts
    42
    Rep Power
    0


    Default

    That was my post above. I had logged in but I must have taken too long to reply and been logged out. Thanks again!

Similar Threads

  1. Syntax error for specials page
    By amandabuild in forum osCMax v2 Features Discussion
    Replies: 2
    Last Post: 11-15-2005, 06:04 AM
  2. Specials page, how to show in html bts
    By gamefreak7 in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 08-31-2005, 07:29 AM
  3. How to remove specials for this month in Main page?
    By blum in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 07-04-2005, 04:10 PM
  4. Bug - specials.php page displays to few products
    By Redbeard in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 11-09-2003, 10:11 AM
  5. spécials in first page
    By talme in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 02-19-2003, 12:21 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
  •