Skip to main content

Installing and Configuring the Floating Widget

Turn on the loyalty Floating Widget in your Shopify theme, then set up its header, modules and styling so members can check and use their rewards from any page.

M
Written by Michelle Lia

Overview

Members want to check their rewards and find ways to earn without leaving the page they're on. The Floating Widget gives them a hub for their loyalty information on every page of your store, and you set it up in Okendo Admin.


Installing the floating widget

To install the floating widget, please follow these steps:

  1. Go to Shopify admin > Online Store > Themes. Select Customize against the desired theme.

  2. Locate the App Embeds icon:

    Then toggle on the Okendo Reviews app embeds setting.

  3. Finally, go to Loyalty > On-Site Displays > Floating Widget > General. Toggle on the Floating Widget setting.


Configuring the Floating Widget

To access the Floating Widget, go to Loyalty > On-Site Displays > Floating Widget. Note the configurable elements of the widget on the left and the preview pane on the right. Review changes to the Floating Widget, in real time, via the preview pane.

Preview Settings

Use the Preview Settings to simulate how the Floating Widget will look and feel for customers who are logged in, are of a certain tier group (where applicable) or have a particular points balance. The Floating Widget can show both points and direct rewards, depending on the reward type you choose, and the points balance option applies to programs that award points. Access Preview Settings by selecting this icon:

Quickstart

Simplify the process of styling the Floating Widget by selecting Quick Start > Auto Style. Auto Style can create an entire color palette, based on the selections below and applies them across different elements of the Floating Widget:

  • Brand Primary Color

  • Primary Text Color

  • Secondary Text Color

General

The Floating Widget offers several general settings that can be configured:

Configurable Options

Description

Show Floating Widget

Displays or hides the Floating Widget.

Header First Line

Customize the first line of the header in the Floating Widget.

Header Second Line

Customize the second line of the header in the Floating Widget.

Position

Choose the position of the Floating Widget across your store. Options include Left, Bottom Left, Bottom Middle, Bottom Right, and Right.

Header

The Floating Widget header dynamically displays the customer's loyalty information based on their status and your program configuration. No manual configuration is required.

By default, the header displays information in the following order, provided the customer has each:

Tier | Points | Store Credit

Each field is shown or hidden automatically:

  • Tier is shown when VIP Tiers are enabled and the customer belongs to a tier.

  • Points is shown only when your program awards points and the customer has a points balance. If your program awards only store credit and coupons, the widget doesn't show points.

  • Store Credit is shown when the customer has store credit in their Shopify Wallet for your store. It shows their store credit balance as a currency amount, with no additional configuration required.

  • Joined Date is shown as a fallback when the customer has no tier, no points balance and no store credit, so the header always displays something meaningful.

💡 If you've renamed points to your own currency name, the widget shows that name in place of "Points".

Modules

Configure which loyalty program modules to display on the Floating Widget. Choose from:

  • Earn and Redeem: A module that displays all available earn rules and redemptions available to a customer. In the widget menu, it shows as Earn Rewards and Redeem Rewards.

  • Move Up Tiers: A module that displays the customer's tier status, available tiers (and associated benefits) and tier progress. This module will only show if VIP Tiers are enabled and can be optionally removed from the Floating Widget.

  • Refer Friends: A module that allows enrolled members to send referrals to potential new buyers.

If your program awards only store credit and coupons, the widget hides points. The home screen drops the points section, and Redeem Rewards keeps only the Redeemed tab, so members can find coupons they've earned in a Discounts list. Redeem Rewards still shows when a member holds coupons.

💡 The FAQ module is automatically displayed in the floating widget, under this icon:

Read more about how to configure the FAQ module here.

Bubble Style

Use this section to configure the collapsed state of the Floating Widget:

Configurable Options

Description

Icon

Select an icon to display on the Floating Widget, in its collapsed state.

Style on Small Screens

This setting defines how the Floating Widget behaves on small screens (e.g., mobile devices). There are three settings:

  • If set to Floating, the widget will be displayed, with padding, in the location defined by the merchant

  • The Docked option is similar to Floating, except all padding is removed and the widget is 'docked' to the edge of the screen.

  • Finally, the Hidden option hides the collapsed state of the widget completely.

Style on Large Screens

This setting defines how the Floating Widget behaves on large screens (e.g., desktops). The same options for small screens, are available here.

Background Color

Choose the background color for the collapsed widget.

Bubble Color

Set the border color around the collapsed widget.

Text Color

Define the color of the text.

Background Hover Color

Customize the background color on mouse hover.

Text Hover Color

Adjust the text color on mouse hover.

Expanded Widget Style

Use this section, to configure the expanded state of the Floating Widget.

Configurable Options

Description

Header Image

Display an image in the header on the home screen of the Loyalty Widget. Recommended formats include GIF, JPEG, JPG, and PNG with a recommended width of less than 1400px.

Brand Primary Color

Set the background color for the header on the home screen. This color is used when there's no header image.

Brand Positive Color

Used for positive messaging, including tick icons and success alerts.

Hide Okendo Branding

Toggle to remove 'Powered by Okendo' branding from the Loyalty Widget (available on Growth plans and above).

Text

Configurable Options

Description

Primary Text Color

Color used for secondary headings and labels (excluding the header on the home screen).

Secondary Text Color

Color for text information, such as points or credit balances and earning activities.

Header Text Color

Color for header text on the home screen.

Link Text Color

Color used for link text throughout the Loyalty Widget.

Buttons

Configurable Options

Description

Background Color

Customize button colors.

Text Color

Set the color of the button text.

Border Color

Define the color of button borders.

Background Color Hover

Configure button colors on mouse hover.

Text Color Hover

Adjust button text colors on mouse hover.

Border Color Hover

Set the color of button borders on mouse hover.


FAQs & Troubleshooting

Q: Why can't I see the Floating Widget?

A: Please make sure you have:

  1. enabled Widgets in Okendo Admin

  2. enabled the Okendo App Embed in the Shopify Theme Customizer

  3. enabled the Floating Widget in Okendo Admin

  4. launched the loyalty program.

Q: How do I make the Floating Widget open on page load?

A: To open the Floating Widget on page load, please add the following, at the end of the desired URL:

/?okendo_loyalty_open=true

For example https://mystore.com/?okendo_loyalty_open=true

When a customer clicks on a call to action with this underlying URL, the Floating Widget will automatically open. This is particularly helpful when you want to open the Floating Widget from a call to action embedded in an email or SMS.

Q: How can I open the Floating Widget from a menu option or other on-site call to action?

A: You could add the following JavaScript functions to control the visibility of the floating widget:

okeLoyaltyApi.open()
​okeLoyaltyApi.close()

An example implementation:

<script> 
// Function to open Loyalty
function openLoyalty() {
if (window.okeLoyaltyApi) {
window.okeLoyaltyApi.open();
}
else {
document.addEventListener('oke-loyalty-widget-loaded', () => { okeLoyaltyApi.open(); });
}
}

// Listen for hash change
window.addEventListener('hashchange', function () {
if (location.hash === '#rewards') {
openLoyalty();
}
})

// Check the hash when the page is loaded
if (location.hash === '#rewards') {
openLoyalty();
}
</script>

If you have any specific questions or need further assistance, feel free to reach out to our support team.

Did this answer your question?