Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Feb 2009
    Posts
    747
    Plugin Contributions
    0

    Default Sorting products in the store

    I have upgraded my site to 1.5.5e and using a clone of the classic responsive theme.

    When I select to view All products, I can sort them by price, by new to old or old to new, by name, etc. However, if I choose to view the products in one category, I only have the option to sort by price or name. I am missing the option to sort by new to old or vice versa.

    Is that functionality really missing or is there a setting that I need to adjust?

    My site is http://creationcassel.com/store/

    Thanks.

  2. #2
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    1,818
    Plugin Contributions
    1

    Default Re: Sorting products in the store

    All I get is a blank white page using that link
    Rick
    ChainWeavers (dot) com

  3. #3
    Join Date
    Jul 2012
    Posts
    14,854
    Plugin Contributions
    17

    Default Re: Sorting products in the store

    I do too, but there is page source present. My guess is that there is something associated with the class no-fouc and or javascript that is preventing the remainder of some script to execute and display the page again.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  4. #4
    Join Date
    Feb 2009
    Posts
    747
    Plugin Contributions
    0

    Default Re: Sorting products in the store

    That is odd. I tried typing the url, clicking on the link, using an incognito window or even a different browser and I still get the store to load correctly. Not sure why it gives a white page. In addition, I got some purchases coming through so the store must load for customers.

  5. #5
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    1,818
    Plugin Contributions
    1

    Default Re: Sorting products in the store

    Page loads on my laptop
    Page is blank white on my tablet.
    Rick
    ChainWeavers (dot) com

  6. #6
    Join Date
    Feb 2009
    Posts
    747
    Plugin Contributions
    0

    Default Re: Sorting products in the store

    Quote Originally Posted by RixStix View Post
    Page loads on my laptop
    Page is blank white on my tablet.
    As I don't have a tablet, I cannot test that. Any idea why?

  7. #7
    Join Date
    Jul 2012
    Posts
    14,854
    Plugin Contributions
    17

    Default Re: Sorting products in the store

    Quote Originally Posted by CaroleAs View Post
    As I don't have a tablet, I cannot test that. Any idea why?
    You can test it by adding to your url: &layoutType=tablet to any existing parameters otherwise prefix with a question mark instead of ampersand if there are none.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  8. #8
    Join Date
    Feb 2009
    Posts
    747
    Plugin Contributions
    0

    Default Re: Sorting products in the store

    Whether I can test it or not, I am not even sure what I would be looking for, in order to get it to display, but that still does not address the initial question of sorting products inside categories the same way they can be sorted when ALL items are displayed.

  9. #9
    Join Date
    Jul 2012
    Posts
    14,854
    Plugin Contributions
    17

    Default Re: Sorting products in the store

    Quote Originally Posted by CaroleAs View Post
    Whether I can test it or not, I am not even sure what I would be looking for, in order to get it to display, but that still does not address the initial question of sorting products inside categories the same way they can be sorted when ALL items are displayed.
    Seems like you would probably be looking for html validation issues or reason why the jquery is not executing to re-display the page (remove the class="no-fouc"). But that said, yes we have all strayed from the original question.

    There is additional code provided in includes/templates/YOUR_TEMPLATE/templates/tpl_products_all_default.php that first offers the ability to sort product (which is not provided in the template file for showing product within a category, more on that in a second).

    Once the code is added to the appropriate template file (another require/include statement), then the response needs to be processed such that the page actually reflects the chosen option.

    The listing of product in a category is effectively through the index page and there are some basic conditions to be met for a category to show that it has product when considering a default store.

    So I'm going to approach this discussion from the "loading" of the page perspective rather than a backwards design thought.

    From the main page, one selects a category. If that category only has product then as identified in includes/modules/pages/index/main_template_vars.php, the $tpl_page_body is set to tpl_index_product_list.php which towards the end of the file is loaded.

    Now, in that file is an alpha "sorter" that you are seeing, and it seems to basically allow you to select a list of names that start with the letter that is chosen. It doesn't seem to do much else. You want to be able to modify the sequence of product. So you would want to add the processing and display of the sort box to which you referred on the products_all page.

    Code needed would be:

    Code:
    <?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'); ?>
    Which would provide the dropdown box with the options that you are wanting to see. The results of changing those options would be populated through the setting of $_GET['disp_order'] and a page reload. So now you need to "capture" the disp_order in the "load sequence".

    Well, when looking at the index page, the filters in includes/index_filters are processed and in this case, basically the default_filter.php file. There are several sections within the file depending on the status of the page request: ie. manufacturers_id involved, a given category (or all of them), etc... In the default default_index.php file, there is already an $alpha_sort variable which applies an additional request to basically filter the names down to those that begin with a value, but it does not sort the list. Two options, could append the resulting $order_by that is identified in the includes/modules/YOUR_TEMPLATE/listing_display_order.php file (as included into the default_index.php file before use of the $order_by variable) or add an additional variable to each query where this is to be possible so that the sorting will be applied to the value of $listing_sql...

    Seems like that all together should get you what you want. I believe others have posted in the forum about it where specific code has been provided.

    But you are correct, the default install does not have that option presented initially and it requires some additional modification to obtain it.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  10. #10
    Join Date
    Feb 2009
    Posts
    747
    Plugin Contributions
    0

    Default Re: Sorting products in the store

    Thank you for clarifying that the default installation didn't offer that sorting capability. At least, I know it has nothing to do with incorrect installation.

    I'll look further into this as it will take me several readings to make sense of it. Thanks for all those details.

    Knowing that the next version is probably already in the making, is there a way to suggest that this be reinstated? I am pretty sure it was there before I upgraded, and I don't see why, searching inside a category, a user would not be able to sort them to see what is the newest product in that particular category, and only have them alphabetically ordered.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Sorting Products
    By kdipaolo in forum General Questions
    Replies: 0
    Last Post: 5 Dec 2011, 07:13 PM
  2. Replies: 0
    Last Post: 14 Dec 2009, 05:18 AM
  3. featured items sorting mod not sorting
    By elishama3 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 27 Mar 2008, 04:39 AM
  4. How to change the sorting of the all products listing?
    By gibsons in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Oct 2006, 07:11 PM
  5. Sorting Products
    By docfx in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 May 2006, 10:51 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