add cart resource, state, and related codez