PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 2/26/2018 1:35 PM by  MooreCreative
Remove sorting from Category Viewer
 4 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Author Messages





New Member






--
2/24/2018 6:56 AM
    Hello user,
    when i try to deactivate all sorting option of the categery Viewer Modul and save it, again the standard options are selected, when i check it again. When i limit the option to just one it stays. How can i complete remove the sorting option so that the dropdown (option) and Sort by disappears? Can this be done in configuration or must i change the source. Reason is that my customer does not have images for most of his products (food delivery) and we want to use the BulkOrderList View for this reason.
    Kind regards
    Martin Gartmann





    Veteran Member






    --
    2/24/2018 4:27 PM
    I'm able to reproduce this behavior in Hotcakes 03.01.00. If you uncheck all of the checkboxes for the available sort options in the settings of the Category Viewer module, the sort drop-down list is still shown to website visitors.

    If none of the sort options are selected, the drop-down list shouldn't be displayed. This isn't a bug, but it is a missing feature for an unforeseen use case. I've created an issue in GitHub to get this resolved in a future release.

    https://github.com/Hotcak...merce/core/issues/94

    In the meantime, you can fix this by either hiding the drop-down list via CSS or deleting it from the view entirely. I'd suggest the former. An example of the CSS update is shown below. You can put this at the end of your views.less file and recompile it. This will make it easier to maintain in the future when you merge updates arising from upgrades.

    [code=css]/*
    Viewset Modifications
    */
    .hc-sort{ display:none; }[/code]
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    New Member






    --
    2/25/2018 8:04 AM
    Dear Will,
    your answer gave me the kick to the correct direction.
    Indead i have created a copy of the view, modified it by removing sorting and now it is working as my customer want's it. Because the name of the modified view(s) are different from the standard it is supposed not to be overwritten on futuere updates!?
    THX and greetings from Germany
    Martin





    Veteran Member






    --
    2/25/2018 3:10 PM
    When you edit the viewsets, you shouldn't be editing the "_default" viewset. This one will be overwritten on upgrades and it's also a clean version of what a working viewset is out-of-the-box. So you should ideally make no changes to it so that merges and comparisons are easier when upgrading and troubleshooting.

    You should instead be editing/updating your own viewset of any other name. You can learn more about this in the documentation below.

    https://hotcakescommerce....ting-Custom-Viewsets
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    Basic Member






    --
    2/26/2018 1:35 PM
    Thanks for the perfect replies, Will. In that case, using a touch of CSS to hide the element is a perfect, quick work around.

    Too, mgarub, you can place that css into the settings of the module or the main page/site settings to set .hc-sort to display:none that way you're not making any semi-permanent edits to the viewset for something as simple as this.

    ---

    For anyone else that needs a customized BulkOrderList, we have built one with XMod Pro that has a few benefits over the HC Bulk Order List... mainly being the speed of the data query and lookup of results when you have more than a thousand product records. There's direct speed improvements to the lookup, and then the ajax filter which allows users to search/filter is lightning fast as well.

    If anyone needs it for their projects, just reach out
    [img=https://www.moorecreative.com/Portals/8/Images/ModuleScreenshots/Hotcakes-OrderBySku.jpg]Hotcakes XMod Pro - Bulk Order List[/img]
    You are not authorized to post a reply.


    Loading
    • Sign-up for the Hotcakes Community Newsletter: