It will use the ID from your shopping cart by default. This is set when you created your add to cart buttons. Are you storing the correct ID in another column in your cart? If so you can update your paypal server behaviors on the confirm and pp_confirm pages to use a different cart column with the correct ID.