- CodeIgniter is a PHP framework
- PHP only runs server-side. It CAN NEVER run on the client-side browser.
Putting 1 and 2 together: Your shopping cart does not exist client-side and cannot be modified client-side.
However, you can make an AJAX request from the client to the server, and then modify the shopping cart server-side, and send back the results.