the eCart store cart summary and details behaviors can be added by going to the server behaviors panel, clicking the plus button and selecting eCart -> Database manipulation.
in the Details behavior, set the ID column to the relation column in the details table, click he lightning bolt icon next to the relation column and select the session that is created by the Summary behavior.