Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2011
    Location
    Espoo, Finland
    Posts
    49
    Plugin Contributions
    0

    Default Code in default_filter.php

    Sorry, if I do understand something wrong, but this code does not seem correct, IMHO:

    Code:
    // Legacy $_GET['sort'] which was used for sort-by-clicking-column-heading
    if (isset($column_list) && !empty($_GET['sort'])) {
        if (!isset($_GET['sort']) && PRODUCT_LISTING_DEFAULT_SORT_ORDER !== '') {
            $_GET['sort'] = PRODUCT_LISTING_DEFAULT_SORT_ORDER;
        }
    ...
    }
    (Lines 93>> in new default_filter.php for v2.0.0)

  2. #2
    Join Date
    Apr 2011
    Location
    Espoo, Finland
    Posts
    49
    Plugin Contributions
    0

    Default Re: Code in default_filter.php

    Code:
    // Legacy $_GET['sort'] which was used for sort-by-clicking-column-heading
    if (!isset($_GET['sort']) && PRODUCT_LISTING_DEFAULT_SORT_ORDER !== '') {
        $_GET['sort'] = PRODUCT_LISTING_DEFAULT_SORT_ORDER;
    }
    if (isset($column_list) && !empty($_GET['sort'])) {
    ...
    }

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,508
    Plugin Contributions
    88

    Default Re: Code in default_filter.php

    @yesaul, what issue are you experiencing? With which template?

  4. #4
    Join Date
    Apr 2011
    Location
    Espoo, Finland
    Posts
    49
    Plugin Contributions
    0

    Default Re: Code in default_filter.php

    Quote Originally Posted by lat9 View Post
    @yesaul, what issue are you experiencing? With which template?
    I use my own template, where "sort-by-clicking-column-heading" is (still) in use

    But this does actually no matter, as code quoted in my first message seems meaningless anyway

    I suggest I am not only one why needs this legacy code, and as it was added to new version, it should be correct, shouldn't it ? (or removed...)


    My site
    Last edited by yesaul; 19 Apr 2024 at 03:10 PM.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 29 Aug 2013, 05:57 AM
  2. Replies: 14
    Last Post: 22 May 2013, 04:00 AM
  3. Replies: 6
    Last Post: 11 May 2009, 03:35 AM
  4. PhP question about a line of code in includes/classes/order.php
    By dbrewster in forum Managing Customers and Orders
    Replies: 12
    Last Post: 1 Feb 2007, 03:30 PM
  5. [done 1.3.7] default_filter.php bug
    By cees in forum Bug Reports
    Replies: 6
    Last Post: 31 Jan 2007, 04:37 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