mgarub
  •  mgarub
  • 54% (Neutral)
  • Newbie Topic Starter
2018-02-24T10:56:51Z
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
Will Strohl
2018-02-24T20:27:19Z
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/HotcakesCommerce/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.

/*
    Viewset Modifications
*/
.hc-sort{ display:none; }

Will Strohl, Upendo Ventures
Hotcakes Cloud  | Get Support  | Code Support 
Official Cloud & Support provider for Hotcakes
mgarub
  •  mgarub
  • 54% (Neutral)
  • Newbie Topic Starter
2018-02-25T12:04:17Z
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
Will Strohl
2018-02-25T19:10:29Z
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...Creating-Custom-Viewsets 
Will Strohl, Upendo Ventures
Hotcakes Cloud  | Get Support  | Code Support 
Official Cloud & Support provider for Hotcakes
MooreCreative
2018-02-26T17:35:08Z
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
Hotcakes XMod Pro - Bulk Order List
There was an error displaying content. Please contact site administrator.
Loading
  • Sign-up for the Hotcakes Community Newsletter: