Developer forum

Forum » Ecommerce - Standard features » Sorting Groups by a customfield

Sorting Groups by a customfield

Kim Søjborg Pedersen
Reply

It should be a simpel task but I dont see how to sort the (ecom) groups on my paragraph by a customfield..

There is no "GroupListTemplateExtender" so how could I do it?


Replies

 
Nicolai Høeg Pedersen
Reply

My only idea would be to set the sorting on the EcomGroupRelations table when you do the import, or by having some code that executes once in a while.

Nicolai

 
Kim Søjborg Pedersen
Reply

Thanks, but do to the bug #13909 i can't do it in the import so I was looking for some workaround. To be honest I have more needs then just sorting the groups. Nicolai you are the mastermind here, is there no way to alter the grouplist before render it? override, razor, etc.... just anything that gives me some control to do it.. in near future I need to remove groups depending of what user is logged in without writing my own ecom module :)

 
Nicolai Høeg Pedersen
Reply

Hi Kim

 

We can fairly easy give you a notification where the arguments have a property of the groups being rendered. Then that collection can be manipulated.

That would require you to be running on the 8.4 branch and that we release a fix for you.

Nicolai

 
Kim Søjborg Pedersen
Reply

Hi Nicolai, that would be great thanks. Right now I just need to confirm that I can solve the customers wish in near future.
Kim

 
Christian Rud Skovgaard
Reply

Hi,

I can add that bug number 13909 has been fixed in Dynamicweb 8.4

KInd Regards

Christian

 
Kim Søjborg Pedersen
Reply

Hi, Christian have you testet it?

 
Christian Rud Skovgaard
Reply

Hello Kim,

Yes, bugfix 13909 have been tested by us. Do you experience any problem with ParentGroupSorting in Dynamicweb 8.4?

 

Kind regards

Christian 

 
Kim Søjborg Pedersen
Reply

Hi Christian,

yes please see http://developer.dynamicweb-cms.com/forum.aspx?PID=48&ThreadID=34104 and this where snedker writes he will look in to it. http://developer.dynamicweb-cms.com/forum/integration/confirm-bug-13909-is-fixed.aspx

 

You must be logged in to post in the forum