osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 08-30-2005, 09:16 PM
gamefreak7's Avatar
Member
 
Join Date: Apr 2005
Location: Michigan, USA
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gamefreak7
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 08-31-2005, 07:29 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,334
Thanks: 68
Thanked 324 Times in 307 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
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
Show manufacturer's name on product page, not category page kellbot osCMax v1.7 Discussion 0 04-25-2005 04:57 AM
MS2-Max Bug in main page specials??? midwestwebsites osCMax v1.7 Discussion 4 06-16-2004 11:11 AM
specials - show price with tax in admin, how do i do it? Anonymous osCMax v1.7 Discussion 0 01-22-2004 02:07 PM
Bug - specials.php page displays to few products Redbeard osCMax v1.7 Discussion 1 11-09-2003 11:11 AM
spécials in first page talme osCommerce 2.2 Modification Help 1 02-19-2003 01:21 AM


All times are GMT -8. The time now is 10:05 PM.


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