Product List Default Order not working #282
Unanswered
cmdigitaluk
asked this question in
Q&A
Replies: 2 comments
|
I think this is a first render issue where the orderby hidden input is empty and the ProductFunctions code path to allow the sorting is not getting executed. I pushed a branch that adds the first render check and should fix this. |
0 replies
|
It's also confusing sometimes, because the "Manual Order" is sometimes turned on for the list. This means that the products list list in a manual sort order for a category. So if you select a category, it might not be in alphabetical order. This is an option in the store config settings, in the admin panel. @AddPreProcessMetaData("orderby", "NB3.ProductName", Model.FullTemplateName, Model.ModuleId.ToString()) Is usually the only line needed if you don't want the user to select the order. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've seen a couple of posts on this subject but none of them seemed to provide an answer. I want to sort my product list alphabetically when you navigate to the page. I've edited ProductDisplayAjaxList.cshtml to
@AddPreProcessMetaData("orderby", "NB3.ProductName", Model.FullTemplateName, Model.ModuleId.ToString())
@AddPreProcessMetaData("orderby0", "NB3.ProductName", Model.FullTemplateName, Model.ModuleId.ToString())
I've commented out the other orderby lines but but I still can't get my product list to show in the correct order
All reactions