Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Move 1 Single Box on main page

Move 1 Single Box on main page

Locked

Views: 1,161

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
13 Sep 2006, 6:51 PM
#1
hrm avatar

hrm

New Zenner

Join Date:
Oct 2005
Posts:
95
Plugin Contributions:
0

Move 1 Single Box on main page

I'm using a couple of center boxes and would like to be able to move just one of them "Featured Products (New Releases)" up between the TEXT_MAIN and define_main_page. I can see where it needs to go, but I don't know enough about PHP to know what needs to be there with it. I've tried a couple of things but nothing's worked.

Here's what I currently have:

?>

<table border="0" width="100%" cellspacing="2" cellpadding="2">

  <tr>

    <td class="pageHeading"><h1><?php echo HEADING_TITLE; ?></h1></td>

  </tr>

  <tr>

    <td class="greetUser"><?php echo zen_customer_greeting(); ?></td>

  </tr>
<?php if (TEXT_MAIN) { ?>
  <tr>

    <td class="main"><?php echo TEXT_MAIN; ?></td>

  </tr>
<?php } ?> <?php if (TEXT_INFORMATION) { ?>
  <tr>

    <td class="plainBox"><?php echo TEXT_INFORMATION; ?></td>

  </tr>
<?php } ?> <?php if (DEFINE_MAIN_PAGE_STATUS == '1') { ?>
  <tr>

    <td class="plainBox"><?php require($define_main_page); ?><br /></td>

  </tr>
<?php } ?>
</table><br />
<?php $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN); while (!$show_display_category->EOF) { ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?> <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_FEATURED_PRODUCTS_MODULE)); ?><?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?> <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_SPECIALS_INDEX)); ?><?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?> <?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEW_PRODUCTS)); ?><?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_UPCOMING') { ?> <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?> <?php $show_display_category->MoveNext(); } // !EOF ?>

Thanks.

Heather
Results! Why, man, I have gotten a lot of results.
I know several thousand things that won't work.
----Thomas Edison

13 Sep 2006, 6:54 PM
#2
zforrest avatar

zforrest

New Zenner

Join Date:
Jun 2006
Location:
Austin, TX
Posts:
85
Plugin Contributions:
0

Re: Move 1 Single Box on main page

Just read the code. Move the line with FEATURED MODULE above the TEXT_MAIN or wherever you want it.

13 Sep 2006, 7:33 PM
#3
hrm avatar

hrm

New Zenner

Join Date:
Oct 2005
Posts:
95
Plugin Contributions:
0

Re: Move 1 Single Box on main page

I tried that and the box just disappeared altogether.

Heather
Results! Why, man, I have gotten a lot of results.
I know several thousand things that won't work.
----Thomas Edison