Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Specials Page Layout

Specials Page Layout

Views: 1,092

Results 1 to 4 of 4
9 Apr 2014, 3:34 PM
#1
cyberfolli avatar

cyberfolli

New Zenner

Join Date:
Sep 2010
Posts:
64
Plugin Contributions:
0

Specials Page Layout

index.php?main_page=specials

I am looking to change this to a grid or change it to something more like the product listings right now it's a row listing with everything stacked under the picture information wise .. I am not using a grid mod pretty stock..

I am NOT talking about the center column layout..

thanks in advance

9 Apr 2014, 4:04 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Specials Page Layout

cyberfolli:

index.php?main_page=specials

I am looking to change this to a grid or change it to something more like the product listings right now it's a row listing with everything stacked under the picture information wise .. I am not using a grid mod pretty stock..

I am NOT talking about the center column layout..

thanks in advance

If not mistaken, would want to look in includes/functions/specials.php. I thought there was an applicable template file that gets one there, but also thought the meat of what you are wanting to change is in the above functions file. I could be wrong.

9 Apr 2014, 4:29 PM
#3
cyberfolli avatar

cyberfolli

New Zenner

Join Date:
Sep 2010
Posts:
64
Plugin Contributions:
0

Re: Specials Page Layout

There is no layout in there to modify and create tables for this..

This is the template file which doesn't do much

<?php
/**
 * Module Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_modules_specials_default.php 2935 2006-02-01 11:12:40Z birdbrain $
 */
  $zc_show_specials = false;
  include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_SPECIALS_INDEX));
?>

<!-- bof: specials -->
<?php if ($zc_show_specials == true) { ?>
<div class="centerBoxWrapper" id="specialsDefault">
<?php
/**
 * require the columnar_display template to show the products
 */
  require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
?>
</div>
<?php } ?>
<!-- eof: specials -->
9 Apr 2014, 5:14 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Specials Page Layout

cyberfolli:

There is no layout in there to modify and create tables for this..

This is the template file which doesn't do much

<?php /** * Module Template * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: tpl_modules_specials_default.php 2935 2006-02-01 11:12:40Z birdbrain $ */ $zc_show_specials = false; include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_SPECIALS_INDEX)); ?> <!-- bof: specials --> <?php if ($zc_show_specials == true) { ?> <div class="centerBoxWrapper" id="specialsDefault"> <?php /** * require the columnar_display template to show the products */ require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php'); ?> </div> <?php } ?> <!-- eof: specials --> ```

Sorry, it's been a bit since I looked into the same thing. I seem to remember that there are a few files that all work together to give the line by line listing that you describe when going to the specials page. I am not at a computer and had done a bit of an internet search (unsuccessfully) to try to help. There should be an includes/modules/pages/specials header_php.php file that mayhelp track down the applicable files. Also, I think there is a modules file and possibly another template file. If not mistaken, you're trying to make the specials page look more like the all products view, so umay want to also look into how that all goes together as well.

The code posted above suggests to go look at the tpl_columnar_display.php file next to see what it does to provide the information, but I think the header file I described above and modifications to the tpl_specials.php file to look more like the type of display you're after (products, new, etc...) Is what you may be after. Sorry can't help much more at the moment.