updated for shopcart and register checkout