Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default [Done v155] admin/customers.php sortOrderHeader construction....

    i count 16 instances of using a sortOrderHeader in this script. they all make use of the following line of code (or similar based on what is being sorted).

    i have two proposed solution to it; i can see the value in each solution....

    my issue and why i believe this to be a bug, is lets say i'm searching for a customer, and then i want to sort those results, the sort clears the search.

    PHP Code:
    // original
    <a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=firstname''''NONSSL'); ?>"> 

    // proposed solution 1
    <a href="<?php echo zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('list_order')) . 'list_order=firstname''NONSSL')

    // proposed solution 2
    <a href="<?php echo zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('list_order','page')) . 'list_order=firstname', 'NONSSL')
    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: admin/customers.php sortOrderHeader construction....

    Working on including this in v155: https://github.com/zencart/zencart/pull/820
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 34
    Last Post: 24 Mar 2016, 08:06 PM
  2. v138a [Done v155] admin, customers.php span tags not closed
    By torvista in forum Bug Reports
    Replies: 2
    Last Post: 22 Mar 2016, 08:57 PM
  3. Replies: 3
    Last Post: 21 Jan 2016, 10:35 PM
  4. Replies: 0
    Last Post: 1 Dec 2013, 03:11 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