Forums / Templates, Stylesheets, Page Layout / Switch order of Specials and Featured on Main Page (Issue)

Switch order of Specials and Featured on Main Page (Issue)

Locked

Started by psychicpet on 20 Jan 2008, 5:44 PM · Views: 1,409

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 Jan 2008, 5:44 PM
#1
psychicpet avatar

psychicpet

Inactive

Join Date:
Sep 2007
Posts:
44
Plugin Contributions:
0

Switch order of Specials and Featured on Main Page (Issue)

I would like to switch the center box order of Featured and Specials on my main page: http://deadseamarket.com but I seem to be having issues.

I tried resorting under Admin->Configuration_>Index Listing but it seems to have no effect.

I edited tpl_index_default.php by moving

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?>
<?php
/**
 * display the Special Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
<?php } ?>

above ```

<?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 } ?>

That didn't do the trick either.  Any suggestions on how I might do this?  Seems like it should be simple but it is alluding me.

thanks!
20 Jan 2008, 6:14 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,739
Plugin Contributions:
0

Re: Switch order of Specials and Featured on Main Page (Issue)

If you switch to the classic template, can you swap the order from the Admin?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

23 Jan 2008, 12:21 AM
#3
psychicpet avatar

psychicpet

Inactive

Join Date:
Sep 2007
Posts:
44
Plugin Contributions:
0

Re: Switch order of Specials and Featured on Main Page (Issue)

Yes, it is working properly in the classic template. Any idea as to where I can find the proper code to copy into my template?

23 Jan 2008, 7:10 AM
#4
psychicpet avatar

psychicpet

Inactive

Join Date:
Sep 2007
Posts:
44
Plugin Contributions:
0

Re: Switch order of Specials and Featured on Main Page (Issue)

Wait... strangely, after making it work on the classic template...it now works in my template. I don't understand why but I am happy it does!

Thanks for the suggestion Kim!