Skip to content

Order Bonus Progress Bar

The order bonus progress bar shows customers how close they are to reaching the next order bonus threshold.

Note: This documentation is under construction.

Theme-Based Carts

  1. Ensure “Order Bonuses” is enabled in the “Giveaway Gator Body Embed” theme embed.
  2. Add this snippet to your theme cart to render the progress bar:
<div id="gg-order-bonuses-progress"></div>

Using with Slide Cart by Amp

<script>
    window.SLIDECART_LOADED = function(cart) {
      window.ggatorInitializeProgressBar();
    }

    window.SLIDECART_UPDATED = function(cart) {
      window.ggatorUpdateProgressBar(cart.items_subtotal_price);
    }
</script>

Customizing the Progress Bar

The progress bar can be styled with CSS. Key classes include:

  • .gg-order-bonuses-container — Main container
  • .gg-progress-bar-background — Progress bar track
  • .gg-progress-bar-fill — Progress bar fill
  • .gg-threshold-badge — Individual threshold badges
  • .gg-threshold-badge.active — Reached threshold badges
  • .gg-next-threshold-message — “Spend $X more” message

Type to search…

↑↓ navigate↵ selectEsc close