Page 4 of 11 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 101
  1. #31
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Sort by price with column display....

    I may have changed something else in other files. let me check again and I'll get back to you asap
    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

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

    Default Re: Sort by price with column display....

    I must have changed something in my files, anyhow, the setting below show work for your site (tested)

    PHP Code:
    <option value="2a" <?php echo ($_GET['sort'] == '2a' 'selected="selected"' ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_NAME?></option>
        <option value="2d" <?php echo ($_GET['sort'] == '2d' 'selected="selected"' ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_NAME_DESC?></option>
        <option value="3a" <?php echo ($_GET['sort'] == '5a' 'selected="selected"' ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_PRICE?></option>
        <option value="3d" <?php echo ($_GET['sort'] == '5d' 'selected="selected"' ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_PRICE_DESC?></option>
    I also notice something wrong on your site: when you use the sort form, you will be redirected to something like this:
    PHP Code:
    index.php?main_page=index&cPath=15&sort=2d&filter_id=&alpha_filter_id=0&main_page=index&cPath=15&sort=1d 
    You see, the sort parameter appears twice, same goes for the main_index and cPath. It's just that you use the sort form along with the filter form, which already has the sorter passed as hidden field, along with cPath and main_page.

    You should edit /includes/templates/your_current_template/templates/tpl_modules_listing_display_order.php, comment out the line:
    PHP Code:
    echo zen_draw_hidden_field('disp_order'$_GET['disp_order']); 
    And edit tpl_modules_additional_listing_display_order.php, comment out all the lines that draw "main_page" and "cpath" field.
    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

  3. #33
    Join Date
    May 2006
    Posts
    313
    Plugin Contributions
    0

    Default Re: Sort by price with column display....

    Yellow,

    again, thank you so much for your help.

    1. I removed cpath and mainpath sections of tpl_modules_additional_listing_display

    2. changed the option value and sorts in the same file.

    3. and the line from tpl_modules_listing_display_order.php was already commented...

    it doesn't seem to be any different.

    except that I think the sort redirect is fixed.

    if you are out of ideas. I understand and appreciate everything you've done so far.

    I am here if anything else comes to mind.

    thanks again.

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

    Default Re: Sort by price with column display....

    You still have 2 sort parameters passed at the same time, check your URL:

    PHP Code:
    index.php?main_page=index&cPath=23&sort=1d&sort=5a 
    ZenCart will pick up the first para, which is 1d and that is not what we want!
    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

  5. #35
    Join Date
    May 2006
    Posts
    313
    Plugin Contributions
    0

    Default Re: Sort by price with column display....

    you are right!

    i'll be working on it.

    keep you updated.

    have a good day.

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

    Default Re: Sort by price with column display....

    Someone asked me how to let customers sort the listing the way they want, so I'll just bump this thread.

    PS: Please start reading from page 3-4.
    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

  7. #37
    Join Date
    Jun 2006
    Posts
    20
    Plugin Contributions
    0

    Default Re: Sort by price with column display....

    Any ideas on how to display products by date added in ascending or descending order?

    http://www.daddyesonusa.com/shop/index.php?main_page

    Thanks in advance.

  8. #38
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Sort by price with column display....

    products_date_added from the products table is not built into the products listing ...

    It can be added but you would need to include this field in the select statements, built in the title and then the sort order for it ...

    The other listings, Featured, All and New Product listings each have this built in as a selection on them and might be of help to you in customizing this information ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #39
    Join Date
    Jun 2006
    Posts
    20
    Plugin Contributions
    0

    Default Re: Sort by price with column display....

    Can the product sorting number be used as an alternative? In another words; when adding or editing products in the admin area and manipulating the sort number field?

  10. #40
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Sort by price with column display....

    That could become a royal pain to track and maintain ...

    If can be done, if not using linked products ... but it would be more logical, as you will probably want the customer to switch between sort orders including by date, to code that in as one of the fields available ...

    To set the default to the products_sort_order you can set the Product Listing so that it sorts on that field set the display order to Blank, meaning nothing, in the Configuration ... Product Listing ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 4 of 11 FirstFirst ... 23456 ... LastLast

Similar Threads

  1. Change Display price with attribute LARGEST price not lowest
    By bubbadan in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Feb 2020, 05:37 AM
  2. Problems with Sort by Price
    By JohnBoyCR in forum General Questions
    Replies: 32
    Last Post: 29 Nov 2010, 02:59 AM
  3. Column layout grid view - add sort by price
    By mattys in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Sep 2010, 11:41 AM
  4. how to sort products listings with price
    By pavka in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Apr 2008, 08:11 PM
  5. Category view: changing product display column width - image, description, price?
    By azenuser in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 8 Feb 2007, 10:31 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