fix compile errors with shopping cart