Skip to main content
Widgets are the UI components that present Order Protection to your customers at the cart and checkout. You can customize their appearance, content, and behavior to seamlessly match your store’s look and feel.
Cart and checkout widget configurations are pre-determined in partnership with the Order Protection development team. Your team will work together with OP to set up the initial widget configuration for your store.
Widgets landing page showing cart and checkout widgets

Widget Types

OrderProtection.com supports two primary widget types: You can manage all of your widgets from the Customizations > Widgets tab. Use the All, Active, and Draft tabs to filter widgets by status.

Editing a Widget

Click Edit on any widget card to open the editor. The editor uses a split-screen layout: the Customizer sidebar on the left and a live widget preview on the right.

Checkout Widget Configuration

Checkout widget editor with Customizer sidebar and live preview The Customizer tab for checkout widgets includes:
  • Widget Name: A descriptive name for internal identification (e.g., “Checkout #06”).
  • Widget Title Style: Choose between:
    • Logo — Display your store’s logo or the Order Protection logo.
    • Label — Use a custom text title with typography controls:
      • Title text
      • Label Weight (Bold / Regular)
      • Label Size (inherits Shopify styles)
  • Information Modal: Toggle to show a “What’s this?” link that opens an informational overlay. See Info Modals to configure these.

Admin Settings (checkout widgets)

Below the Customizer options, checkout widgets have an Admin Settings section that controls where and when the widget is allowed to appear. Most of these should be left at their defaults — the geography settings are the ones that matter if you ship internationally. Admin Settings section of the checkout widget editor
Several of these settings don’t just hide the widget — if Order Protection has already been added to the cart, they remove it. Only the payment-method rule shows the customer an explanation when that happens.

Where the widget can appear

Three settings work together to control geography, and the order they’re evaluated in matters.
Allowed International Countries only takes effect when Domestic Order Coverage Only is set to Yes. With Domestic Order Coverage Only set to No, every country is already allowed and the list is ignored entirely. Think of the pairing as “US only, plus these” — not as a filter applied to worldwide selling.
Use GB for the United Kingdom, not UK. The example text shown in the field reads UK, SE, CA, BR, but UK is not a valid ISO-2 country code — Shopify sends GB. An entry of UK will silently never match.

Selling to the UK

Leave Exclude UK IP Addresses set to No. Setting it to Yes blocks UK customers outright, and it’s applied before the allowed-countries list — so adding GB to Allowed International Countries will not override it. Instead, control the UK from Settings → Policies, in the Widget block, using Opt-in Countries. The UK is included there by default, which presents Order Protection to UK customers as an opt-in choice rather than auto-adding it. Opt-in Countries in the Policies widget settings
See Policies → Widget for the rest of the opt-in and auto-add settings.

Display and behavior

Checkout eligibility

Hidden shipping method and checkout eligibility settings
Payment handles aren’t a fixed list — the exact value can differ per store. To find the right one, turn Enable Debug Mode on, run a test checkout, select the payment method, and read the handle from the browser console. Then turn debug mode back off.
The delivery option entered under Show Hidden Shipping Method Logic must match the option’s name exactly — it’s a whole-value match, not a partial one, though capitalization doesn’t matter. Entering pickup will not match a delivery option named Pickup at My Store.

Cart Widget Configuration

Cart widget editor with Customizer sidebar and live preview Cart widgets include the same title configuration options plus additional styling controls:
  • Label Size: Set the font size in pixels.
  • Label Color: Choose a custom color via the color picker.
  • Label Font: Select from available fonts or upload a custom WOFF font file.

Advanced Configuration

For cart widgets only, the Advanced Config tab provides a JSON editor for direct manipulation of the full widget configuration. Import your config by pasting it into the editor, or click Open Full Screen for an expanded editing view. Advanced Config tab with JSON editor for cart widgets
Advanced configuration is only intended for cart widget setups. Shopify merchants should not use the Advanced Config tab for checkout widgets — use the Customizer tab instead.

Getting the Widget Code

After publishing your widget, click Get Code to view the embed code for your store. The modal provides:
  • Config JSON — Your widget’s configuration object.
  • JavaScript — A <script> tag to include in your site’s index file.
  • HTML — The <order-protection> web component tag to place wherever you want the widget to appear.
Use the Copy Code buttons to copy each snippet to your clipboard. Get Code modal showing Config JSON, JavaScript, and HTML snippets
Code scripts are also available if you’re modifying cart or checkout themes directly via a code repository.

Publishing and Drafts

You can manage multiple widgets (e.g., different designs for cart vs. checkout) and switch between Active and Draft statuses at any time.