Buddi SEO Documentation
Home
Return to Buddi.io
Home
Return to Buddi.io
  • Getting Started

    • Installation Guide
  • Functions

    • Store Selection
    • Single Product
    • All Products
    • Products by Category
    • Products by Categories
    • Featured Promotions
    • Collections
    • Store Info
    • Add to Cart
    • Content Management System
  • Modules

    • Shopping Cart Module
    • Customer Profile
  • Advanced Functions

    • Dynamic object syncing
    • Cart
    • Customer
    • Login Customer
    • Logout Customer
    • Register Customer
    • Update Customer
  • Events
  • FAQ
  • Exceptions Handling
  • Caching
  • Deploying
  • Example Templates

Cart

This functionality is advanced. We recommend that most users utilize the ready made modules to simplify and speed up development. The cart module can be found here.

Example:

Buddi.getCart();

Caching: 60 mins

Events: cart:loaded, cart:loading-error, cart:updated

Returns:

{
    allTaxes: {...},
    appliedBagFee: null,
    appliedRewards: [],
    bagFeeTaxes: [],
    bagFees: [],
    deliveryFee: null,
    deliveryFeeTaxes: [],
    directMailFee: null,
    directMailFeeTaxes: [],
    discountCode: null,
    items: {...},
    loyaltyWallet: null,
    rewardTotals: [],
    subtotal: 110.99,
    taxes: {...},
    tip: null,
    total: 126.42,
    totalWithDelivery: 126.42,
    totalWithExpressDelivery: 126.42,
    weight: 6
}
Last Updated: 10/16/25, 5:57 PM
Contributors: jesseleejohnston
Prev
Dynamic object syncing
Next
Customer