LogoLogo
  • Inveterate Dev Docs
  • API Reference Docs
    • Public API 2.0 Reference
      • Admin
        • Benefits
        • Members
          • Credits
        • Merchant
        • Tiers
          • Benefits
          • Campaigns
        • Webhooks
      • Storefront
        • Members
          • Credits
            • Redemption
          • Cancellation
        • Benefits
        • Tiers
          • Benefits
          • Campaigns
        • Specification
      • Schemas
    • [LEGACY] Public API Reference
      • Benefits API
      • Campaigns API
      • Customers API
      • Merchant API
      • Credits API
      • Free tiers API
      • Webhooks
  • Stack Reference Docs
    • Landing Page
    • Storefront
      • Properties
      • Customizations
        • Add To Cart Button
    • Customer Metafields
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Stack Reference Docs
  2. Storefront

Properties

All Inveterate properties can be found in the properties namespace within the inveterate object.

To view the properties object paste the following into the browser console:

window.inveterate.properties

The above code will display the following object structure:

{
  benefits: Object,
  campaigns: Array[Object],
  constants: Object,
  customer: Object,
  pageType: String,
  product: Object,
  redirectUrl: String,
  referralApiUrl: String,
  referralData: Object,
  referralStorageName: String
}
  • benefits: An object of benefits you have enabled/disabled and all of the settings associated with them.

  • campaigns - An object of campaigns you have created in association with the Early Access benefit.

  • constants - Object is empty at the moment.

  • customer - An object containing information about the current signed in customer and their membership status.

  • pageType: The type of page you're currently on.

  • product: An object containing details about the membership subscription product.

  • redirectUrl: The default URL location of the landing page.

  • referralApiUrl: URL for making get request to track referrals.

  • referralData: An object containing the details of a referral in progress.

  • referralStorageName: The name where referral data is stored within localStorage.

PreviousStorefrontNextCustomizations

Last updated 1 year ago

Was this helpful?