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

Featured Promotions

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

getFeaturedPromotions

The method returns the retailer featured promotions. Backend cache time is 10mins.


Example:

Buddi.getFeaturedPromotions();

Events: featured-promotions:loaded, featured-promotions:loading-error


Returns:

[{
    desktop_image: 'url',
    mobile_image: 'url',
    id: 1,
}, ...]

getFeaturedPromotion

The method returns the retailer featured promotion by the given ID.


Example:

Buddi.getFeaturedPromotion(15);


Returns:

{
    desktop_image: 'url',
    mobile_image: 'url',
    id: 1,
    products: [ShortProduct, ShortProduct, ...],
}

Events: featured-promotion:loaded, featured-promotion:loading-error

Last Updated: 10/15/25, 9:24 PM
Contributors: jesseleejohnston
Prev
Products by Categories
Next
Collections