Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2006
    Posts
    94
    Plugin Contributions
    0

    Default Simplify Product Listing Page by removing description details

    Hi,

    I would like to remove the Long product description from my Product_listing code.

    I am using the Column Layout Grid v1.35

    I would just like to have:
    Product Image
    Product Name
    Product Price.

    Here is a link to my current page.

    Here is the tpl_modules_product_listing.php, which I think is the proper file to edit.
    Code:
    <?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_product_listing.php 3241 2006-03-22 04:27:27Z ajeh $
     * UPDATED TO WORK WITH COLUMNAR PRODUCT LISTING 04/04/2006
     */
     include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_PRODUCT_LISTING));
    ?>
    <div id="productListing">
    <?php
    // only show when there is something to submit and enabled
        if ($show_top_submit_button == true) {
    ?>
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_ADD_PRODUCTS_TO_CART, BUTTON_ADD_PRODUCTS_TO_CART_ALT, 'id="submit1" name="submit1"'); ?></div>
    <br class="clearBoth" />
    <?php
        } // show top submit
    ?>
    
    <?php if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {
    ?>
    <div id="productsListingTopNumber" class="navSplitPagesResult back"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></div>
    <div id="productsListingListingTopLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y', 'main_page'))); ?></div>
    <br class="clearBoth" />
    <?php
    }
    ?>
    
    <?php
    /**
     * load the list_box_content template to display the products
     */
    if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {
      require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
    } else {// (PRODUCT_LISTING_LAYOUT_STYLE == 'rows')
      require($template->get_template_dir('tpl_tabular_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_tabular_display.php');
    }
    ?>
    
    <?php if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
    ?>
    <div id="productsListingBottomNumber" class="navSplitPagesResult back"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></div>
    <div  id="productsListingListingBottomLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></div>
    <br class="clearBoth" />
    <?php
      }
    ?>
    
    <?php
    // only show when there is something to submit and enabled
        if ($show_bottom_submit_button == true) {
    ?>
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_ADD_PRODUCTS_TO_CART, BUTTON_ADD_PRODUCTS_TO_CART_ALT, 'id="submit2" name="submit1"'); ?></div>
    <br class="clearBoth" />
    <?php
        } // show_bottom_submit_button
    ?>
    </div>
    
    <?php
    // if ($show_top_submit_button == true or $show_bottom_submit_button == true or (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART != 0 and $show_submit == true and $listing_split->number_of_rows > 0)) {
      if ($show_top_submit_button == true or $show_bottom_submit_button == true) {
    ?>
    </form>
    <?php } ?>

  2. #2
    Join Date
    Dec 2005
    Posts
    1,059
    Plugin Contributions
    2

    Default Re: Simplify Product Listing Page

    I think you can turn that off in in Admin/Configuration/Product Listing.
    Set Display Product Description to 0. It will still have the description when
    a product is clicked on and goes to that product page.

    Hope this helps!
    [FONT=Arial]Country Kitty Crafts[/FONT][FONT=Arial]
    [/FONT] [FONT=Garamond]
    [/FONT]

  3. #3
    Join Date
    Sep 2006
    Posts
    94
    Plugin Contributions
    0

    Default Re: Simplify Product Listing Page

    Thanks.. That did the trick.

 

 

Similar Threads

  1. v153 Product Page Description and Details Blank By Default?
    By Yourvirtualworld in forum Basic Configuration
    Replies: 7
    Last Post: 7 Jan 2015, 01:24 AM
  2. v139f removing order description or details from authorize.net receipt
    By Koda in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 5 Jun 2012, 08:03 PM
  3. Removing white space on product description page
    By PK_Lisa in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Apr 2011, 11:41 PM
  4. ligning up details on product listing page
    By barendfaber in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Sep 2010, 05:41 PM
  5. Replies: 2
    Last Post: 12 Mar 2010, 04:33 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR