Egernsund Wienerberger’s selection of brick samples comes from their collaboration with three brick factories in Denmark. Therefore, they needed a split order system that divides the order according to which brick samples are purchased.
I used code snippets to write PHP code that splits the order based on the item’s shipping class, which sorts items by brick factory. This ensures that three unique orders are sent to Shipmondo with the sorted items, so each brick factory only needs to handle the order with their own brick samples.