Customize using events

Note:

  • In case you use those events below for customization, please make sure to use CSS to hide BOGOS' default component.

  • All customizations should be implemented inside the file snippet/freegifts-snippet.liquid

type GiftVariant {
  id: number,
  title: string,
  price: number,
  original_price: number,
  thumbnail: string,
  discount_type: "percentage" | "fixed_amount",
  discount_value: number
}

type GiftProduct {
  id: number,
  title: string,
  handle: string,
  thumbnail: string,
  belongs_to_offer?: string | string[],
  variants: GiftVariant[]
}

type TodayOffer {
  id: string,
  title: string,
  gifts: GiftProduct[]
}

type CartMessage {
  value: string,
  offer_root: string, // offer id
}

1. Event for customizing the Gift slider

Note: Make sure to use the CSS below to hide BOGOS's default component of the Gift slider

2. Event for customizing the Gift icon, and Gift thumbnail on product page

Note: Make sure to use the CSS below to hide BOGOS's default component of the Gift icon, and Gift thumbnail

3. Event for customizing the Today offer

Note: Make sure to use the CSS below to hide BOGOS's default component of the Today offer


4. Event for customizing the Cart message

Note: Make sure to use the CSS below to hide BOGOS's default component of the Cart message

Last updated

Was this helpful?