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

Collections

These methods are used to get the details for product collections created within Buddi and the details pertaining to each.

getProductCollections

The method returns the retailer product collections. Backend cache time is 10mins.


Example:Buddi.getProductCollections();

Events: product-collections:loaded, product-collections:loading-error


Returns:

[{
    image: 'url',
    id: 1,
}, ....]

getProductCollection

The method returns the retailer product collection by the given ID.


Example:

Buddi.getProductCollection(1);

Events: product-collection:loaded, product-collection:loading-error


Returns:

{
    image: 'url',
    id: 1,
    products: [ShortProduct, ShortProduct, ...],
}
Last Updated: 10/15/25, 9:24 PM
Contributors: jesseleejohnston
Prev
Featured Promotions
Next
Store Info