Firepit CMS shopping cart is based on the LaraCart Package.

$item = LaraCart::add('identifier', 'My product', 1, '10.00', [
    // extra meta attributes
]);