Results 1 to 3 of 3

Mod to Display Catalog

This is a discussion on Mod to Display Catalog within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; I'm not sure how to ask this but I'll give it a shot. When you first come into max you ...

      
  1. #1
    New Member
    Join Date
    Aug 2004
    Posts
    8
    Rep Power
    0


    Default Mod to Display Catalog

    I'm not sure how to ask this but I'll give it a shot.

    When you first come into max you are presented with some verbage(i know how to change the verbage) and then two lines, one for specials of the month and the other line for new products. I don't want any of that. What I would like is a mod that when entering the catalog and hitting the index_default.tpl.php file the page will display random catalog entries over several lines, kind of like when a person clicks on a category listing where all items in that category is listed.

    I hope that is clear enough.

    Thanks for all your help thus far!

  2. #2
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    8


    Default

    Removing the "new products" and "specials" is done in /templates/content/index_default.php

    Look for
    Code:
     <td><br><?php include(DIR_WS_MODULES . FILENAME_DEFAULT_SPECIALS); ?></td>
              </tr>
              <tr>
                <td><br><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
              </tr>
    <?php
        include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS);
    ?>
    and change it to this:

    Code:
                
               <td><br><?php //include(DIR_WS_MODULES . FILENAME_DEFAULT_SPECIALS); ?></td>
              </tr>
              <tr>
                <td><br><?php //include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
              </tr>
    <?php //
        include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS);
    ?>
    Or better yet remove the <td> elements completely


    Now to take care of Category Images on the homepage.

    Open /includes/application_top.php

    On roughly line 460 find this code
    Code:
      } else {
        $cPath = '';
      }
    and change it to this:
    Code:
    } else {
        $cPath = '0';
      }
    Now open /templates/content/index_nested.tpl.php

    and on roughly line 69 find this code
    Code:
    <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
              </tr>
              <tr>
                <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
              </tr>

    and change it to this

    Code:
    <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
              </tr>
    <?php if ($cPath=="0") { ?>
    		  <tr>
                <td><br><?php include(DIR_WS_MODULES . FILENAME_DEFAULT_SPECIALS); ?></td>
              </tr>
              <tr>
                <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
              </tr>
    <?php } ?>


    Hope this helps, Don't forget if you need custom PHP work done, we do it, get our contact from sig line

  3. #3
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    8


    Default

    by the way, if you use my code changes to display categories, and also want to remove specials and new products, do so in /templates/content/index_nested.tpl.php as outlined above just add a // beofre the incliude statements as the category on home page code bypasses index_default completely.

Similar Threads

  1. Moved catalog from /catalog/ to root and now no images_big
    By Redeye_Joe in forum osCMax v2 Features Discussion
    Replies: 3
    Last Post: 05-01-2006, 06:01 PM
  2. Printable catalog with Display prices with tax?
    By Lynoure in forum osCMax v1.7 General Mods Discussion
    Replies: 8
    Last Post: 05-23-2004, 03:09 PM
  3. Error: Catalog images directory does not exist: catalog/imag
    By Korsh in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 11-26-2003, 08:31 PM
  4. How to get single line per item in catalog display?
    By dhinz in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 10-09-2003, 07:43 AM
  5. Tax (U.K. VAT) display both
    By byson in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 03-28-2003, 05:36 AM

Bookmarks

Posting Permissions

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