Developer forum

Forum » Feature requests » Control which orderline fields are used in CanBeMerged comparison

Control which orderline fields are used in CanBeMerged comparison

Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi,

We use OrderFieldValues to store values from customer's input and sometimes custom values that are available when product is added to cart. The CanBeMerged method compares the OrderFieldValues property between orderlines. We would like to ask for a way to exclude/include some fields in that comparison - maybe a checkbox in field create page? - so we could specify which field values should be compared to create new orderlines or just increase existing ones.

BR Mario


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Can you explain the use case please? It cannot imagine it will be a UI configuration as this sounds like a very rare situation - and my guess is that you can solve it somehow.

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Every now and again we have projects that need aditional info / comments per orderline. For that we have to use orderline custom field which is only populated in the My Cart page. Therefore we always need to create workarounds (usually notification subscribers) for when orderline is added to cart do a check for same existing line with same product and increase it.

We also have some projects where we need tracking numbers per orderline (and even supporting a custom order approval process) . Although those are stored through integration, using the "classic" Reorder from Customer Center would copy those values to the orderlines, thus making them unique. Although we are moving towards the Reorder with Express Buy (in Swift projects), it shows how not all orderline custom fields are part of the ID.

Yes, we can solve all of these with workarounds so we see this feature request as a small improvement.

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Thanks for explaining. We will not implement this.