Docs / Laravel Cart / Cart Items

Cart Items

The method Cart::getContent() returns a collection of items.

Apart from the above methods, you can also get the price of an item with or without item level conditions applied.

These methods do not apply cart level conditions.

// With no conditions, just the price * quantity $item->getPriceSum(); // With conditions applied get the price of a single quantity $item->getPriceWithConditions(); // Get the sum with conditions applied $item->getPriceSumWithConditions(); // Without conditions applied $item->getPriceSumWithConditions();
Discovery Call

One call.
We'll both know.

An hour to walk through your project, ask the hard questions, and work out honestly if we're the right team for it.

  • One call per day - it gets our full attention
  • Australia's only Laravel Premier Partner
  • Senior engineers only - no juniors on your project
  • Brisbane-based, onshore team

Press Esc to close  ·  B to reopen