Results 1 to 10 of 10
  1. #1
    Join Date
    May 2007
    Posts
    19
    Plugin Contributions
    0

    Default Catagories listed under new products

    Hello

    Could some help me please.

    I have set catagories in admin to show on main page but i have lost the welcome notes at the top.

    I am trying to have the standard layout with New products grouped below the welcome, after that i would like the lists of the catagory shown.

    If you look at my site i have the listing shown and like it. But i would like to show the "New Products for May" back at the top with the welcome text above
    http://www.7vinyls.com

    If i go back to the standard layout, how do i just add these catagory items now at the top, to go below?

    Hope you know what im talking about!!!

    Loving this zen thingy...

    Poida

  2. #2
    Join Date
    Oct 2004
    Location
    Houston, TX
    Posts
    782
    Plugin Contributions
    4

    Default Re: Catagories listed under new products

    You will need to edit includes/templates/YOUR_TEMPLATE/templates/tpl_index_product_list.php:

    Assuming you haven't edited it already and your using ZenCart version 1.3.7, you will need to cut out this part:

    Code:
    <?php
      if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_NEW_PRODUCTS') { ?>
    <?php
    /**
     * display the New Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
    <?php } ?>
    And put it before line 84:

    Code:
    <?php
    /**
     * require the code for listing products
     */
     require($template->get_template_dir('tpl_modules_product_listing.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_product_listing.php');
    ?>
    Here is the complete revised file:
    Code:
    <?php
    /**
     * Page Template
     *
     * Loaded by main_page=index<br />
     * Displays product-listing when a particular category/subcategory is selected for browsing
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 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_index_product_list.php 5369 2006-12-23 10:55:52Z drbyte $
     */
    ?>
    <div class="centerColumn" id="indexProductList">
    
    <h1 id="productListHeading"><?php echo $breadcrumb->last(); ?></h1>
    
    <?php
    if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS == 'true') {
    // categories_image
      if ($categories_image = zen_get_categories_image($current_category_id)) {
    ?>
    <div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', CATEGORY_ICON_IMAGE_WIDTH, CATEGORY_ICON_IMAGE_HEIGHT); ?></div>
    <?php
      }
    } // categories_image
    ?>
    
    <?php
    // categories_description
        if ($current_categories_description != '') {
    ?>
    <div id="indexProductListCatDescription" class="content"><?php echo $current_categories_description;  ?></div>
    <?php } // categories_description ?>
    
    <?php
      $check_for_alpha = $listing_sql;
      $check_for_alpha = $db->Execute($check_for_alpha);
    
      if ($check_for_alpha->RecordCount() > 0 && PRODUCT_LIST_ALPHA_SORTER == 'true') {
      $form = zen_draw_form('filter', zen_href_link(FILENAME_DEFAULT), 'get') . '<label class="inputLabel">' .TEXT_SHOW . '</label>';
    ?>
    
    <?php
      echo $form;
      echo zen_draw_hidden_field('main_page', FILENAME_DEFAULT);
      echo zen_hide_session_id();
    ?>
    <?php
      // draw cPath if known
      if (!$getoption_set) {
        echo zen_draw_hidden_field('cPath', $cPath);
      } else {
        // draw manufacturers_id
        echo zen_draw_hidden_field($get_option_variable, $_GET[$get_option_variable]);
      }
    
      // draw typefilter
      if (isset($_GET['typefilter']) && $_GET['typefilter'] != '') echo zen_draw_hidden_field('typefilter', $_GET['typefilter']);
    
      // draw manufacturers_id if not already done earlier
      if ($get_option_variable != 'manufacturers_id' && isset($_GET['manufacturers_id']) && $_GET['manufacturers_id'] > 0) {
        echo zen_draw_hidden_field('manufacturers_id', $_GET['manufacturers_id']);
      }
    
      // draw sort
      echo zen_draw_hidden_field('sort', $_GET['sort']);
    
      // draw filter_id (ie: category/mfg depending on $options)
      if ($do_filter_list) {
        echo zen_draw_pull_down_menu('filter_id', $options, (isset($_GET['filter_id']) ? $_GET['filter_id'] : ''), 'onchange="this.form.submit()"');
      }
    
      // draw alpha sorter
      require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_PRODUCT_LISTING_ALPHA_SORTER));
    ?>
    </form>
    <?php
      }
    ?>
    <br class="clearBoth" />
    <?php
      if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_NEW_PRODUCTS') { ?>
    <?php
    /**
     * display the New Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
    <?php } ?>
    
    <?php
    /**
     * require the code for listing products
     */
     require($template->get_template_dir('tpl_modules_product_listing.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_product_listing.php');
    ?>
    
    
    <?php
    //// bof: categories error
    if ($error_categories==true) {
      // verify lost category and reset category
      $check_category = $db->Execute("select categories_id from " . TABLE_CATEGORIES . " where categories_id='" . $cPath . "'");
      if ($check_category->RecordCount() == 0) {
        $new_products_category_id = '0';
        $cPath= '';
      }
    ?>
    
    <?php
    $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MISSING);
    
    while (!$show_display_category->EOF) {
    ?>
    
    <?php
      if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_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 } ?>
    
    <?php
      if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_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 } ?>
    
    
    <?php
      if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_UPCOMING') {
        include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS));
      }
    ?>
    <?php
      $show_display_category->MoveNext();
    } // !EOF
    ?>
    <?php } //// eof: categories error ?>
    
    <?php
    //// bof: categories
    $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_LISTING_BELOW);
    if ($error_categories == false and $show_display_category->RecordCount() > 0) {
    ?>
    
    <?php
      $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_LISTING_BELOW);
      while (!$show_display_category->EOF) {
    ?>
    
    <?php
        if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_LISTING_BELOW_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 } ?>
    
    <?php
        if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_LISTING_BELOW_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 } ?>
    
    
    <?php
        if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_LISTING_BELOW_UPCOMING') {
          include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS));
        }
    ?>
    <?php
      $show_display_category->MoveNext();
      } // !EOF
    ?>
    
    <?php
    } //// eof: categories
    ?>
    
    </div>
    Last edited by testuser; 13 May 2007 at 07:57 PM.

  3. #3
    Join Date
    May 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Catagories listed under new products

    Hi
    Thanks for your reply


    I have turned off the Main Page - Opens with Category so the greeting shows up and the new products box.

    I did what you said above but the catagory listing doesnt show up.

    I tried it with Main Page - Opens with Category turned on and off but nothing has really changed

    Thanks
    Poida

  4. #4
    Join Date
    May 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Catagories listed under new products

    Would anyone else have any ideas to fix this?
    I have gone back to the standard layhout with the greeting etc on the top. I want to add the catagory list after the New products

    If you click on the main Catagory (7inch Vinyl New) The list view is what i am after to show under the "New Items for MAY" on the basic home page

    Any help would be appreciated

    Poida

  5. #5
    Join Date
    May 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Catagories listed under new products

    is too hard for all you zen masters? :)

  6. #6
    Join Date
    Oct 2004
    Location
    Houston, TX
    Posts
    782
    Plugin Contributions
    4

    Default Re: Catagories listed under new products

    Check PM in user CP.

  7. #7
    Join Date
    May 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Catagories listed under new products

    Thanks for the Pm
    Im a bit scared to give out my FTP login detail though, there must be some other way?
    Poida

  8. #8
    Join Date
    Oct 2004
    Location
    Houston, TX
    Posts
    782
    Plugin Contributions
    4

    Default Re: Catagories listed under new products

    You should be able to create another temp ftp account but nevertheless ... above I believe I posted the modified file for you. I'll look it over and get back to you today.

  9. #9
    Join Date
    Apr 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Catagories listed under new products

    Sorry mate. But there is a deadly bug in your shop that kills IE7. Do the following:

    Add a item to your basket when not logged in
    The select Estimate Shipping
    Select a different country than Australia
    The select State / Province

    Voila! Bang goes IE7


    UPDATE

    Actually this happens on my site as well, so it looks to be a BIG bug in Zencart.
    Last edited by DJ2liveUK; 18 May 2007 at 11:37 AM. Reason: update

  10. #10
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Catagories listed under new products

    Quote Originally Posted by DJ2liveUK View Post
    Sorry mate. But there is a deadly bug in your shop that kills IE7. Do the following:

    Add a item to your basket when not logged in
    The select Estimate Shipping
    Select a different country than Australia
    The select State / Province

    Voila! Bang goes IE7


    UPDATE

    Actually this happens on my site as well, so it looks to be a BIG bug in Zencart.
    Tested site/s using IE7...
    No fault or bug present...
    ZenCart working fine

 

 

Similar Threads

  1. How to exclude certain products listed in New Products?
    By tifischer in forum General Questions
    Replies: 1
    Last Post: 24 Mar 2014, 09:45 PM
  2. v139g how to remove duplicate products from new products listed in main page
    By amruta2104 in forum General Questions
    Replies: 1
    Last Post: 7 Aug 2012, 03:16 PM
  3. Why are my catagories listed right to left???
    By tsav87 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Aug 2010, 05:37 PM
  4. Block a new product from being listed in the 'New Products for November' section.
    By ballyc27 in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 27 Nov 2008, 04:24 PM
  5. New products listed this month...
    By ru812 in forum Basic Configuration
    Replies: 14
    Last Post: 3 Mar 2008, 06:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg