osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Swap Positions of Specials & New Products

This is a discussion on Swap Positions of Specials & New Products within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; I would like to swap the positions of the Specials & New Products categories on the main page. Would like ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-22-2007, 11:57 AM
New Member
 
Join Date: Jul 2006
Posts: 13
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
jasper0
Default Swap Positions of Specials & New Products

I would like to swap the positions of the Specials & New Products categories on the main page. Would like any assistance to do this change. thanks in advance. Karl

Website URL = Margarita's Video Store : Hard to find Movies
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 01-22-2007, 12:38 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 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 Re: Swap Positions of Specials & New Products

Edit your templates/fallback/content/index_default.tpl.php and switch the order of the two boxes.
__________________
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!
  #3  
Old 01-22-2007, 06:27 PM
New Member
 
Join Date: Jul 2006
Posts: 13
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
jasper0
Default Re: Swap Positions of Specials & New Products

I swapped the order of the FILENAME_DEFAULT_SPECIALS AND FILENAME_NEW_PRODUCTS, but it did not work...I have pasted the original code here for the my fallback/contents/index_default.tlp.php. Would appreciate your assistance...Thanks Karl

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading">

</td>
<td class="pageHeading" align="right"><?php //echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>

</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="main"><? //php echo tep_customer_greeting(); ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE); ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<?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>
<tr>
<td><br><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
</tr>
<?php
include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS);
?>
</table></td>
</tr>
</table>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-22-2007, 09:05 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 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 Re: Swap Positions of Specials & New Products

You don't have to paste the code... I know what it looks like... open source remember...

Move this up above the <?php open tag of the $default_specials_query

PHP Code:
           <tr>
            <td><br><?php include(DIR_WS_MODULES FILENAME_NEW_PRODUCTS); ?></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!
The Following User Says Thank You to michael_s For This Useful Post:
jasper0 (01-25-2007)
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
Specials nad New Products jgkiefer osCMax v1.7 Discussion 0 07-24-2004 07:26 AM
New Products box - I want Specials Red Strikeout Text kacheng osCommerce 2.2 Modification Help 4 03-04-2004 11:27 AM
Specials and New Products boxes warrenthewindmill osCMax v1.7 Discussion 2 12-01-2003 10:10 AM
SHOP_NAME -- swap an image for the text ritalcnyc osCommerce 2.2 Modification Help 1 11-21-2003 11:54 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 11:03 PM.


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