I finally found the issue. After 2 hours of searching and 20 minutes after I posted. The PHP function
lets the software know what cart id is there and places a hidden input value that was forcing my code but not the original that I sampled from. I moved it to another place in the code and problem solved.