Page 16 of 32 FirstFirst ... 6141516171826 ... LastLast
Results 151 to 160 of 317
  1. #151
    Join Date
    May 2009
    Posts
    43
    Plugin Contributions
    0

    Default Re: Using one single listing template

    OK, for anyone who gets the same error, you've just missed one $products_new_query_raw that needs to be changed to $listing_sq

    Underneath the line:

    Code:
    $listing_sql = $db->bindVars($listing_sql, ':languageID', $_SESSION['languages_id'], 'integer');
    is another line that needs to be changed to:

    Code:
    $products_new_split = new splitPageResults($listing_sql, MAX_DISPLAY_PRODUCTS_NEW);
    That worked for me

  2. #152
    Join Date
    May 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Using one single listing template

    Hi, im having problem with text alignment in IE(view here).
    The text "Information" is misalign in IE.
    Firefox no problem.

    Anyone here knows how to remove the text "information" in (product_listing.php). Thanks

  3. #153
    Join Date
    Jan 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Using one single listing template

    Hi,

    excellent method.

    I see that this thread deals with how to make all pages look like default Category Product Listing.

    My problem:

    I have modified my All Products listing to suite my needs. Now I want to apply that style to all other listings.

    Is this possible? I guess all I need to change is which code goes
    where, but since I'm not that much into PHP, any help would be
    greatly accepted.

    Thank you

  4. #154
    Join Date
    Jan 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Using one single listing template

    bumpy bump

  5. #155
    Join Date
    Aug 2005
    Posts
    26,245
    Plugin Contributions
    9

    Default Re: Using one single listing template

    Quote Originally Posted by perica6892
    I have modified my All Products listing to suite my needs. Now I want to apply that style to all other listings.

    Is this possible? I guess all I need to change is which code goes
    where, but since I'm not that much into PHP, any help would be
    greatly accepted.
    I know that there are over 100 posts here but this has been covered and the principle is the same no matter which of the 4 layouts you want
    Have a read
    Zen-Venom Get Bitten
    Get Your Business Found

  6. #156
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    633
    Plugin Contributions
    4

    Default Re: Using one single listing template

    I just downloaded this mod from rubik integration and notice many of the files are dated to yesterday. If I understand correctly, this mod has been recently upgraded, but there are no advices re the upgrade.

  7. #157
    Join Date
    Oct 2006
    Posts
    5,486
    Plugin Contributions
    12

    Default Re: Using one single listing template

    Quote Originally Posted by dw08gm View Post
    I just downloaded this mod from rubik integration and notice many of the files are dated to yesterday. If I understand correctly, this mod has been recently upgraded, but there are no advices re the upgrade.
    I guess the upgrade note is: overwrite or merge the new files with the old ones :)

    The most of the files are safe to overwrite except the product_listing.php (in case you edited that file to when you edit your layout for example)
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  8. #158
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    633
    Plugin Contributions
    4

    Default Re: Using one single listing template

    Quote Originally Posted by yellow1912 View Post
    I guess the upgrade note is: overwrite or merge the new files with the old ones :)
    Great mod by the way.

    Quote Originally Posted by yellow1912 View Post
    The most of the files are safe to overwrite except the product_listing.php (in case you edited that file to when you edit your layout for example)
    IIRC The only changes I made (had to make!?) to my product_listing.php were

    i) adding "- 0.5" (ie minus) to the column layout grid width calculation, only because I had already written this column layout arrangement into a category description (ie that adds blurb above a category image)

    ii) extending line 158 to append "...more info" to a truncated product description. (http://www.zen-cart.com/forum/showth...664#post675664). However I have yet to fully test this appendage.

    Thanks

  9. #159
    Join Date
    Nov 2005
    Posts
    154
    Plugin Contributions
    0

    Default Re: Using one single listing template

    i have problem with my special listing, zencart 1.38a. i got a page which is blank un center area(all header/footer/sideboxes are there but center part has nothing..., i am sure i have special products as shown in sideboxes)
    for pages/special/header.php

    Code:
    <?php
    /**
     * Specials
     *
     * @package page
     * @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: header_php.php 3000 2006-02-09 21:11:37Z wilt $
     */
    
    require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
    $breadcrumb->add(NAVBAR_TITLE);
    
    
    	// display order dropdown
    	$disp_order_default = PRODUCT_ALL_LIST_SORT_DEFAULT;
      require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_LISTING_DISPLAY_ORDER));
      
      $listing_sql = "SELECT p.products_id, p.products_image, pd.products_name,
                              p.master_categories_id
                             FROM (" . TABLE_PRODUCTS . " p
                             LEFT JOIN " . TABLE_SPECIALS . " s on p.products_id = s.products_id
                             LEFT JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id )
                             WHERE p.products_id = s.products_id and p.products_id = pd.products_id and p.products_status = '1'
                             AND s.status = 1
                             AND pd.language_id = :languagesID" . $order_by;
    
      $listing_sql = $db->bindVars($listing_sql, ':languagesID', $_SESSION['languages_id'], 'integer');
    
     //check to see if we are in normal mode ... not showcase, not maintenance, etc
      $show_submit = zen_run_normal();
    
    $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,
      'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,
      'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,
      'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,
      'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,
      'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,
      'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE);
    
      /*                         ,
      'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);
      */
      asort($define_list);
      reset($define_list);
      $column_list = array();
      foreach ($define_list as $key => $value)
      {
        if ($value > 0) $column_list[] = $key;
      }
    
    
    ?>
    main_template_vars.php i just leave it blank..
    then tpl_special_default.php
    Code:
    <div class="centerColumn" id="specialsListing">
    
    <h1 id="specialsListingHeading"><?php echo $breadcrumb->last(); ?></h1>
    <?php
    require($template->get_template_dir('/tpl_modules_listing_display_order.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_listing_display_order.php');
        require($template->get_template_dir('tpl_modules_product_listing.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_product_listing.php');
    ?>
    
    
    </div>

  10. #160
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    7,056
    Plugin Contributions
    27

    Default Re: Using one single listing template

    [FONT=Tahoma]This installed PERFECTLY the very first time..

    Yellow I PROMISE that this time I remembered to read this ENTIRE THREAD before posting my question.. I saw a few posts hint at this, but none which pointed me in the right direction (unless I missed it.. could be.. I'm a little sleepy now.. )
    [/FONT]
    [FONT=Tahoma]On the product pages there is a 'Filter results' function,which is useful, but on the New Products and All Products pages, I noticed that there is a 'Sort by' function which I think would be very useful on the product pages since it can sort according to price, dated added, etc. I could use your assistance with the how-to's in replacing the 'Filter results' function on the product pages with the 'Sort by' function?

    [/FONT]

 

 
Page 16 of 32 FirstFirst ... 6141516171826 ... LastLast

Similar Threads

  1. qty boxes missing in product listing page - cannot add multiples to cart?
    By SarahL in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Feb 2008, 01:32 PM
  2. All Product Listing Page - Edit Template Question
    By thehighlandsgroup in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Nov 2007, 04:37 AM
  3. making New Products Listing look like Category/Manufacturer Listing ??
    By simplifiedmedia in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 May 2006, 10:43 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
  •