Zen Follower
- Join Date:
- Jun 2006
- Posts:
- 223
- Plugin Contributions:
- 0
move index defined pages now it shows double
I want to set up my index page so that it has featured products and then the defined main page text. However when I move the php snippet , the text for the main page defined page doubles. It will repeat itself below the featured products.
you can see what I am talking about here
http://www.allaboutyoumonograms.com
here is my code:
<?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
/**
* display the Featured Products Center Box
*/
?>
<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
<?php } ?>
<div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?>
<?php
/**
* display the Special Products Center Box
*/
?>