stringify cart and inject cart into the main