I heard some people talking about or asking around in search of a Cart class. So I've made one: https://github.com/FrenkyNet/fuel-cart
It supports:
- Cookie or Session storage (configurable per cart).
- Single or multi cart usage.
- Item options (with optional added product price).
Hope you like it. If you use it somewhere, please let me know! Post below or look me up on twitter (@frankdejonge).
See anything you would change? Fork and send a pull-request.
Cheers,
Frank
This package is now available in fuel-packages: https://github.com/fuel-packages/fuel-cart
It now also supports fixed and relative tax rates. Tax rates can also be set on individual products and default to the Cart's tax rate if not provided.