Page 13 of 33 FirstFirst ... 3111213141523 ... LastLast
Results 121 to 130 of 327
  1. #121
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Using one single listing template

    Quote Originally Posted by yellow1912 View Post
    You should use classic, by default the classic folder is used for overriding purpose.

    Thanks yellow, I'm in the process of coping the template file to the classic folder. I'll override those template files and report back.

  2. #122
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Using one single listing template

    Yellow, just to make sure... I changed and move these following folders also to /classic/

    includes/modules/template_default ... and rename this to includes/modules/classic/

    If I did that all the pages works great except for New Products which still shows the same error... I'm getting closer!

  3. #123
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Using one single listing template

    Quote Originally Posted by rooisnor View Post
    Yellow, just to make sure... I changed and move these following folders also to /classic/

    includes/modules/template_default ... and rename this to includes/modules/classic/

    If I did that all the pages works great except for New Products which still shows the same error... I'm getting closer!
    If new product shows the sql error, first post that page header_php.php here
    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

  4. #124
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Using one single listing template

    Code:
    <?php
    /**
     * products_new header_php.php
     *
     * @package page
     * @copyright Copyright 2003-2007 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 6912 2007-09-02 02:23:45Z drbyte $
     */
    
      require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
      $breadcrumb->add(NAVBAR_TITLE);
    // display order dropdown
      $disp_order_default = PRODUCT_NEW_LIST_SORT_DEFAULT;
      require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_LISTING_DISPLAY_ORDER));
      $products_new_array = array();
    // display limits
    //  $display_limit = zen_get_products_new_timelimit();
      $display_limit = zen_get_new_date_range();
    
      $listing_sql = "SELECT p.products_id, p.products_type, pd.products_name, p.products_image, p.products_price,
                                        p.products_tax_class_id, p.products_date_added, m.manufacturers_name, p.products_model,
                                        p.products_quantity, p.products_weight, p.product_is_call,
                                        p.product_is_always_free_shipping, p.products_qty_box_status,
                                        p.master_categories_id
                                 FROM " . TABLE_PRODUCTS . " p
                                 LEFT JOIN " . TABLE_MANUFACTURERS . " m
                                 ON (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd
                                 WHERE p.products_status = 1
                                 AND p.products_id = pd.products_id
                                 AND pd.language_id = :languageID " . $display_limit . $order_by;
    
      $listing_sql = $db->bindVars($listing_sql, ':languageID', $_SESSION['languages_id'], 'integer');
      $products_new_split = new splitPageResults($products_new_query_raw, MAX_DISPLAY_PRODUCTS_NEW);
    
    //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;
      }
    ?>

  5. #125
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Using one single listing template

    Remove this line
    $products_new_split = new splitPageResults($products_new_query_raw, MAX_DISPLAY_PRODUCTS_NEW);
    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

  6. #126
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Using one single listing template

    Quote Originally Posted by yellow1912 View Post
    Remove this line
    $products_new_split = new splitPageResults($products_new_query_raw, MAX_DISPLAY_PRODUCTS_NEW);
    Great, the error message is gone now but it doesn't read the new products listing.

    Shows the following:

    More new products will be added soon. Please check back later.
    I checked and it seems I have all the files in the correct places though

  7. #127
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Using one single listing template

    More than likely there is something missing in the new product template, it should look the same with the rest of the template files you have just changed.
    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. #128
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Using one single listing template

    Thank you yellow... let me 're-do' the package and I'll report back!

  9. #129
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Using one single listing template

    I uploaded a fresh copy from your original package, made the changes with the same results.

    The only page which is not showing the listings is the New Products Listing... the others work great!

    Although I'm not too worried about the New Products listing but the other pages were crucial!

    Thank you very much for your help and time yellow, you did a great job with this package which is a HUGE contribution to Zen Cart!!

    I'll fiddle around and see if I can get the New Product Listing to work and I'll let you know

  10. #130
    Join Date
    Nov 2006
    Posts
    62
    Plugin Contributions
    0

    Default Re: Using one single listing template

    I am having the same error with my new product listing. I have also tried to restore my sql backups with no luck.

    However, I was getting this error also for my featured listing, I did fix this by moving my stuff from mycustomtemplate to mycustomtemplate/templates this is not how it is set in the download. :)

    Anyway, How would I go about fixing the new product listing?

    Thanks. :)

 

 
Page 13 of 33 FirstFirst ... 3111213141523 ... LastLast

Similar Threads

  1. Single Listing Template
    By AnglersCorner in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 24 Mar 2015, 01:55 PM
  2. single listing template addon - grid layout for products
    By noyloza in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 Nov 2012, 03:45 PM
  3. Column Grid / Single Listing Template Alternative
    By niccol in forum All Other Contributions/Addons
    Replies: 74
    Last Post: 9 Jul 2012, 01:25 PM
  4. Single Listing Template problem
    By gqq0404 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 15 Nov 2010, 08:57 PM
  5. Transfer of one single category from one Zen database to another
    By MeltDown in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 14 Oct 2008, 07:07 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