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

Specials page, how to show in html bts

This is a discussion on Specials page, how to show in html bts within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; We created a custom template HTML but still trying to figure out how to get the specials to show up ...

      
  1. #1
    Member gamefreak7's Avatar
    Join Date
    Apr 2005
    Location
    Michigan, USA
    Posts
    35
    Rep Power
    0


    Default Specials page, how to show in html bts

    We created a custom template HTML but still trying to figure out how to get the specials to show up on the mainpage. I tried {informationbox}, does anyone know the correct box or code to insert to get this to display?

    Thanks.
    Paul

  2. #2
    osCMax Developer

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


    Default

    If using BTS properly, it will automatically get included in main_page.tpl.php as it auto loads /content/index_default.tpl.php.

    If not using bts properly, you will have to add code something like the following:

    Code:
       <?php
         $default_specials_query = 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 = '" . (int)$languages_id . "' and s.status = '1' and s.customers_group_id = ". (int)$customer_group_id." order by s.specials_date_added DESC limit " . MAX_DISPLAY_SPECIAL_PRODUCTS);
         $default_specials = tep_db_fetch_array($default_specials_query);
    
             if (isset($default_specials['products_id'])) {
    
        ?>        
              <tr>
                <td><br>
                <?php include(DIR_WS_MODULES . FILENAME_DEFAULT_SPECIALS); 
             }   
                ?>
              </td>
              </tr>
    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

Similar Threads

  1. Show manufacturer's name on product page, not category page
    By kellbot in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 04-25-2005, 04:57 AM
  2. MS2-Max Bug in main page specials???
    By midwestwebsites in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 06-16-2004, 11:11 AM
  3. specials - show price with tax in admin, how do i do it?
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 01-22-2004, 01:07 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
  •