All your subscription orders can now offer guaranteed delivery
The Order Protection widget integrates with Smartrr and your Shopify store,
enhancing the subscription order experience for users with all relevant
information in one place.The widget addition to the cart simplifies the claim-filing process for users reducing friction and eliminating the need for manual navigation to the Order Protection website.
Open the theme.liquid file and insert the following code in the bottom of the body:
theme.liquid
{% render 'orderprotection-smartrr' %}
Once set up, Order Protection will be added to all cart instances within
Shopify subscription orders using Smartrr. Customers can choose to opt-in or
opt out of Order Protection for their subscription orders.
Customers will be able to file/edit claims per your normal store settings once
an order confirmation email has been sent.
Did you know? You can customize the Order Protection widget styling specifically for your subscription portal. When creating a new widget, select Subscription as the widget type to create a dedicated subscription widget.For full customization options, visit the Widget Customization page.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OrderProtection","colors":{"primary":"#5B1FD3","light":"#9B9BFD","dark":"#5B1FD3"},"logo":{"light":"https://mintcdn.com/orderprotectioncom/hWJXW3CDmk7aH415/logo/logo-light.png?fit=max\u0026auto=format\u0026n=hWJXW3CDmk7aH415\u0026q=85\u0026s=b559329f3e265ed3e989d25c28a8e911","dark":"https://mintcdn.com/orderprotectioncom/hWJXW3CDmk7aH415/logo/logo-dark.png?fit=max\u0026auto=format\u0026n=hWJXW3CDmk7aH415\u0026q=85\u0026s=19d85b7fcf7ed0ed226b65098a13712b"},"favicon":"https://mintcdn.com/orderprotectioncom/hWJXW3CDmk7aH415/favicon.png?fit=max\u0026auto=format\u0026n=hWJXW3CDmk7aH415\u0026q=85\u0026s=922a5bd784abc0a76e3bea26c2d077db","api":{"openapi":["openapi.yaml","openapi-claims.yaml","openapi-tests.yaml","openapi-metadata.yaml"]},"background":{"color":{"light":"#FFFFFF","dark":"#1B1F27"}},"navbar":{"links":[{"href":"https://discord.gg/4YQeEghMTP","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.orderprotection.com"}},"footer":{"socials":{"github":"https://github.com/orderprotection","linkedin":"https://www.linkedin.com/company/orderprotection"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.gg/4YQeEghMTP"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"orderprotectioncom","hasAudioNarration":false,"actualSubdomain":"orderprotectioncom","customDomains":["docs.orderprotection.com"],"gitSource":{"type":"github","owner":"orderprotection","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad9aa326f446bbc9726dca8","collectionId":"242a9e4d-5a59-47f2-89ac-95f697f0631f","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad9aa326f446bbc9726dca8"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ad9aa326f446bbc9726dca8","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"Documentation","count":60},{"language":"default","tag":"API Reference","count":29},{"language":"default","tag":"Education Basecamp","count":26},{"language":"default","tag":"Integrations","count":19},{"language":"default","tag":"Developer Platform","count":15},{"language":"default","tag":"Claims","count":14},{"language":"default","tag":"Platforms","count":9},{"language":"default","tag":"Products","count":8},{"language":"default","tag":"Webhooks","count":8},{"language":"default","tag":"Getting Started","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"integrations/smartrr","slug":"/integrations/smartrr","pageMetadata":{"title":"Smartrr","description":"All your subscription orders can now offer guaranteed delivery","href":"/integrations/smartrr"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"All your subscription orders can now offer guaranteed delivery\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Check,CodeBlock,Frame,Heading,Note,OptimizedImage,Step,Steps,Tip}=_components;if(!Check)_missingMdxReference(`Check`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(Note,{children:[_jsx(_components.p,{children:`The Order Protection widget integrates with Smartrr and your Shopify store,\nenhancing the subscription order experience for users with all relevant\ninformation in one place.`}),_jsx(_components.p,{children:`The widget addition to the cart simplifies the claim-filing process for users reducing friction and eliminating the need for manual navigation to the Order Protection website.`})]}),`\n`,_jsx(Heading,{level:`2`,id:`installation`,children:`Installation`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Generate an API Token`,children:[_jsxs(_components.p,{children:[`Access the Smartrr admin page: `,_jsx(_components.a,{href:`https://app.smartrr.com/login`,children:`Smartrr\nAdmin`})]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Go to `,_jsx(_components.code,{children:`Integrations`}),` in the Sidebar.`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.code,{children:`API Keys`}),` tab at the top button.`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.code,{children:`\"Create key\"`}),` button in the top right.`]}),`\n`,_jsxs(_components.li,{children:[`Choose a `,_jsx(_components.code,{children:`Token Nickname`}),` and `,_jsx(_components.code,{children:`Application Name`})]}),`\n`,_jsxs(_components.li,{children:[`Choose permissions:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Subscription: Read \u0026 Write access`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Product: Read access`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Customer: Read access`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Webhook: Read \u0026 Write access`})}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.code,{children:`\"Create\"`}),` button.`]}),`\n`]}),_jsx(Frame,{caption:`Creating an API Token`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-01.png?fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=d21bfb25c34bec2083a8f9129e7ee794`,alt:`API Token`,\"data-og-width\":`2846`,width:`2846`,\"data-og-height\":`1652`,height:`1652`,\"data-path\":`public/assets/img/smartrr/smartrr-01.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-01.png?w=280\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=4dfe1850f7cbb34af06cb12785d11a24 280w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-01.png?w=560\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=e4933f3ec3ba3223daecec073175dec2 560w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-01.png?w=840\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=16b9c6fdc121eb457eeae3fb39344dfa 840w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-01.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=9278a611cb7ee42f281347479fcffe3d 1100w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-01.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=db50eaedd2fec0030ac5ba0758700144 1650w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-01.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=f3c637408edc5ae7492e6eb432838f7e 2500w`})})]}),_jsx(Step,{title:`Integrate Smartrr within the Order Protection Platform`,children:_jsxs(_components.p,{children:[`For this step, speak with your `,_jsx(_components.strong,{children:`Onboarding and Implementation`}),` manager to\nproperly set up the API token and applicable webhooks.`]})}),_jsxs(Step,{title:`Install Smartrr Integration Manager on Shopify`,children:[_jsx(Note,{children:_jsx(_components.p,{children:`These changes are done within the Shopify platform.`})}),_jsx(_components.p,{children:`To install the Smartrr Integration Manager on Shopify, follow these steps:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`In the left navigation, go to `,_jsx(_components.code,{children:`Sales Channels`}),` and select `,_jsx(_components.code,{children:`Online Store`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/recharge/recharge-2.png?fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=0b19b982c98232a08b2b11ed7a326c43`,alt:`shopify online store`,\"data-og-width\":`1443`,width:`1443`,\"data-og-height\":`906`,height:`906`,\"data-path\":`public/assets/img/recharge/recharge-2.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/recharge/recharge-2.png?w=280\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=b8d22299ab3cef75e3a0385b18a8e7d1 280w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/recharge/recharge-2.png?w=560\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=63232bb7949afe10a02be8f3d0a7bfcb 560w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/recharge/recharge-2.png?w=840\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=5753f9302af36e56be0fb36b34390803 840w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/recharge/recharge-2.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=0bfd7758a14ce8d985b25bf92eea9ccb 1100w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/recharge/recharge-2.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=fd8d34961fb68bc599bde4351dad4b5b 1650w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/recharge/recharge-2.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=1c53d7b21d0363c927ef3742aaefa36f 2500w`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`Within the `,_jsx(_components.code,{children:`Theme Settings`}),`, select `,_jsx(_components.code,{children:`Edit Code`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/recharge/recharge-3.png?fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=cf19675091b4ad2540135fada48c7d8a`,alt:`Edit Code`,\"data-og-width\":`1439`,width:`1439`,\"data-og-height\":`901`,height:`901`,\"data-path\":`public/assets/img/recharge/recharge-3.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/recharge/recharge-3.png?w=280\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=8c344980622375f427ac35ca94bd0d56 280w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/recharge/recharge-3.png?w=560\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=836e2b7aba717cb0b0f7c76a63c965ff 560w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/recharge/recharge-3.png?w=840\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=fd87d78f0c7e4a30307381d6b18a3487 840w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/recharge/recharge-3.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=93668c8fb603cca1378b1958eec86fe1 1100w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/recharge/recharge-3.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=f5e69d40b15a1564c9eba416d93febcc 1650w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/recharge/recharge-3.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=14b661825f53d125cc2221a5f819fbde 2500w`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`Create a file in `,_jsx(_components.code,{children:`snippets`}),` folder and name it `,_jsx(_components.code,{children:`orderprotection-smartrr.liquid`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-02.png?fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=983cd239be46fa1b91e57f49ecc76fc0`,alt:`Paste code`,\"data-og-width\":`2854`,width:`2854`,\"data-og-height\":`1672`,height:`1672`,\"data-path\":`public/assets/img/smartrr/smartrr-02.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-02.png?w=280\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=60656e52a11f11c6ffcacda6fcf73527 280w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-02.png?w=560\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=951477a20f56eec5219306befe18a597 560w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-02.png?w=840\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=78d59985177cb055143ce66a03e6839e 840w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-02.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=e7df8e4575a6aea4bbc9e2d4d33b206d 1100w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-02.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=3e6ff9107f9f2a961f97cdef7ff938b7 1650w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-02.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=106ff552ec796e2ab7895bc22b13d669 2500w`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`Open the newly created `,_jsx(_components.code,{children:`orderprotection-smartrr.liquid`}),` file and insert the following code and save:`]}),`\n`]}),_jsx(CodeBlock,{filename:`orderprotection-smartrr.liquid`,numberOfLines:`98`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`98`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c!--`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` BEGIN`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` ORDERPROTECTION`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` SMARTRR`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` MANAGER`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -->`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`link`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` rel`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"stylesheet\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` href`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.orderprotection.com/widget/subscriptions/latest/style.css\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` src`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.orderprotection.com/widget/subscriptions/latest/orderprotection.js\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` const opDebug = false;`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` let initialized = false;`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` let smartrrWidget = null;`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` let subId = '';`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` const toggleFn = () => `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`orderProtection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subtotal`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`orderProtection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`price`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` totalWOp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`orderProtection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subtotal`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`orderProtection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`price`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` totalNoOp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`orderProtection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subtotal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` formatter`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Intl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NumberFormat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`undefined`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` style:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'currency'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` currency:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Shopify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`currency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`active`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` formattedSubtotalOP`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` formatter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`format`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`totalWOp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` /`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` formattedSubtotalNoOp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` formatter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`format`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`totalNoOp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` /`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subtotalCls`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `.smartrr-portal-discounts-wrapper .smartrr-portal-estimated-total-line p:nth-child(2)`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subtotalEl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`querySelector`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subtotalCls`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subtotalEl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subtotalEl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`innerText`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`orderProtection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`enabled`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` formattedSubtotalOP`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` formattedSubtotalNoOp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` }`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` const observer = new MutationObserver(async mutations => `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subDiscountCls`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '.smartrr-portal-manage-subs-modal .smartrr-portal-discount-input-wrapper'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subDiscountEl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`querySelector`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subDiscountCls`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subDiscountEl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`initialized`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` initialized`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`querySelector`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'.smartrr-portal-modal-main-title'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`innerHTML`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`replace`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:`/#/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`g`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`''`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`||`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ''`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` const `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`opNewEl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'div'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` opNewEl.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'order-protection'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` subDiscountEl.parentNode.insertBefore(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`opNewEl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, subDiscountEl);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` console.log(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'OP-log: ready to go'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` smartrrWidget = OrderProtection.createOrderProtectionWidget({`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` integration:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'smartrr'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` attach:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` debug:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` opDebug`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` locations:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'order-protection'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` version:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'v2'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` smartrrWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`debug`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` opDebug`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` smartrrWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`widget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`on`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'toggled'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`toggleFn`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` shouldRetry`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` while`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`shouldRetry`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` try {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`smartrrWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isReady`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` smartrrWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subscription`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {};`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` smartrrWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`loadSubscription`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Promise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`resolve`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` =>`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setTimeout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`resolve`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` continue`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` smartrrWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setup`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` smartrrWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` shouldRetry`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } catch (error) {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` shouldRetry = false;`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` console.error(error);`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } else if (!subDiscountEl \u0026\u0026 initialized) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` initialized`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` smartrrWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`widget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`off`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'toggled'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`toggleFn`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` smartrrWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`destroy`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` smartrrWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`destroy`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` opEl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`querySelector`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'#order-protection'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`opEl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`opEl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`remove`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setTimeout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`typeof`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` window`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'undefined'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`window`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`orderProtection`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` observer.observe(document.body, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` childList`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subtree`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` }`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c!--`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` END`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` ORDERPROTECTION`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` SMARTRR`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` MANAGER`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -->`})]}),`\n`]})})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Open the `,_jsx(_components.code,{children:`theme.liquid`}),` file and insert the following code in the bottom of the `,_jsx(_components.code,{children:`body`}),`:`,`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-03.png?fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=37689cffc57d136c90485b791a733464`,alt:`Paste code`,\"data-og-width\":`2856`,width:`2856`,\"data-og-height\":`1670`,height:`1670`,\"data-path\":`public/assets/img/smartrr/smartrr-03.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-03.png?w=280\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=15e838b27be7532a8f27549e866bc192 280w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-03.png?w=560\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=bb2f10cc17931165184399b22c0b657c 560w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-03.png?w=840\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=415e85f46579926cac95da396317bb01 840w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-03.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=7cea31ce9068a2cccfe85bcf7bb60dd9 1100w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-03.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=4166825d161edcedde41b8acaa3a66b3 1650w, https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/smartrr/smartrr-03.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GDuchlp6KbhScehe\u0026q=85\u0026s=384ad9fc295ae1a7bc66efcaed947f89 2500w`}),`\n`]}),`\n`]}),_jsx(CodeBlock,{filename:`theme.liquid`,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`%`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` render`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'orderprotection-smartrr'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` %`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})})]})]}),`\n`,_jsx(Check,{children:_jsx(_components.p,{children:`Once set up, Order Protection will be added to all cart instances within\nShopify subscription orders using Smartrr. Customers can choose to opt-in or\nopt out of Order Protection for their subscription orders.`})}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Customers will be able to file/edit claims per your normal store settings once\nan order confirmation email has been sent.`})}),`\n`,_jsxs(Tip,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Did you know?`}),` You can customize the Order Protection widget styling specifically for your subscription portal. When creating a new widget, select `,_jsx(_components.strong,{children:`Subscription`}),` as the widget type to create a dedicated subscription widget.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png?fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=2d2cf94caf2c4df7a0850230b0cd8ac9`,alt:`Widget type selector with Subscription option highlighted`,\"data-og-width\":`3562`,width:`3562`,\"data-og-height\":`2232`,height:`2232`,\"data-path\":`public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png?w=280\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=12771d73ec923987906484c7eef3bd45 280w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png?w=560\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=1d3df0db1d6c47fb27370dba00331a4a 560w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png?w=840\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=fe860cdacc6e2bfd1a614ce63c06f566 840w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png?w=1100\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=17703cf3b8199d3fe824ff8afbdad0a6 1100w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png?w=1650\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=40a0c366e6b4e446880a53a1d0cc27e1 1650w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-type-selector.png?w=2500\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=fe9d1124b36d9f262c62121db1555e7d 2500w`}),_jsx(OptimizedImage,{src:`https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-list.png?fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=05fe38e82bc6c46e6c0a331df1a64605`,alt:`Widgets list showing a Subscription widget type`,\"data-og-width\":`3584`,width:`3584`,\"data-og-height\":`2226`,height:`2226`,\"data-path\":`public/assets/img/education-basecamp/widgets/widget-subscription-list.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-list.png?w=280\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=fcad4af6448f9acd1aa0b38b5b2693e2 280w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-list.png?w=560\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=735e2c49b43b13c497426e2cfffb7d23 560w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-list.png?w=840\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=547dafcf2285b6e1fdb7a7a494f8c88f 840w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-list.png?w=1100\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=eeee827286ffa1b283b8b3e07248ee9c 1100w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-list.png?w=1650\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=3c8c4d1d80f1775bc2bf1757912fe840 1650w, https://mintcdn.com/orderprotectioncom/6PHukXPBD9AnZd7s/public/assets/img/education-basecamp/widgets/widget-subscription-list.png?w=2500\u0026fit=max\u0026auto=format\u0026n=6PHukXPBD9AnZd7s\u0026q=85\u0026s=78c39b9010eeb0d40b21b10ccccb11f3 2500w`}),_jsxs(_components.p,{children:[`For full customization options, visit the `,_jsx(_components.a,{href:`https://docs.orderprotection.com/education-basecamp/customizations/widgets`,children:`Widget Customization`}),` page.`]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Smartrr","description":"All your subscription orders can now offer guaranteed delivery","href":"/integrations/smartrr"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Installation","slug":"installation","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"orderprotectioncom","siteName":"OrderProtection","title":"Smartrr - OrderProtection","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-14T17:18:05.868Z","originalFileLocation":"integrations/smartrr.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"All your subscription orders can now offer guaranteed delivery\">\u003cmeta data-mint-head name=\"application-name\" content=\"OrderProtection\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Smartrr - OrderProtection\">\u003cmeta data-mint-head property=\"og:description\" content=\"All your subscription orders can now offer guaranteed delivery\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OrderProtection\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.orderprotection.com/integrations/smartrr\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://orderprotectioncom.mintlify.app/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Smartrr\u0026amp;description=All+your+subscription+orders+can+now+offer+guaranteed+delivery\u0026amp;theme=1ad0a6091eaf8edb368a13c9\u0026amp;signature=4a58e28fa849deda89b5685398c26c92ee0d2fafcf752c76b5d5985959c53f8f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Smartrr - OrderProtection\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"All your subscription orders can now offer guaranteed delivery\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://orderprotectioncom.mintlify.app/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Smartrr\u0026amp;description=All+your+subscription+orders+can+now+offer+guaranteed+delivery\u0026amp;theme=1ad0a6091eaf8edb368a13c9\u0026amp;signature=4a58e28fa849deda89b5685398c26c92ee0d2fafcf752c76b5d5985959c53f8f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/orderprotectioncom/fpSHGzgH5R5IA_DO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OrderProtection\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5B1FD3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.orderprotection.com/integrations/smartrr\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/integrations/smartrr.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.orderprotection.com/#organization\",\"name\":\"OrderProtection\",\"url\":\"https://docs.orderprotection.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/orderprotectioncom/hWJXW3CDmk7aH415/logo/logo-light.png?fit=max\u0026auto=format\u0026n=hWJXW3CDmk7aH415\u0026q=85\u0026s=b559329f3e265ed3e989d25c28a8e911\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.orderprotection.com#website\",\"name\":\"OrderProtection\",\"url\":\"https://docs.orderprotection.com\",\"publisher\":{\"@id\":\"https://docs.orderprotection.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.orderprotection.com/integrations/smartrr#webpage\",\"url\":\"https://docs.orderprotection.com/integrations/smartrr\",\"name\":\"Smartrr\",\"description\":\"All your subscription orders can now offer guaranteed delivery\",\"dateModified\":\"2026-05-14T17:18:05.868Z\",\"isPartOf\":{\"@id\":\"https://docs.orderprotection.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.orderprotection.com/integrations/smartrr#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.orderprotection.com/integrations/smartrr#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Integrations\",\"item\":\"https://docs.orderprotection.com/integrations/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Smartrr\",\"item\":\"https://docs.orderprotection.com/integrations/smartrr\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.orderprotection.com/integrations/smartrr#article\",\"headline\":\"Smartrr\",\"name\":\"Smartrr\",\"description\":\"All your subscription orders can now offer guaranteed delivery\",\"url\":\"https://docs.orderprotection.com/integrations/smartrr\",\"mainEntityOfPage\":{\"@id\":\"https://docs.orderprotection.com/integrations/smartrr#webpage\"},\"dateModified\":\"2026-05-14T17:18:05.868Z\",\"publisher\":{\"@id\":\"https://docs.orderprotection.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.orderprotection.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OrderProtection\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"OrderProtection","nav":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.gg/4YQeEghMTP"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Intro","pages":[{"title":"Getting Started","href":"/introduction"}]},{"group":"Platforms","pages":[{"title":"Platforms","icon":"layer-group","href":"/platforms/index"},{"group":"Shopify","icon":"shopify","pages":[{"title":"Collaborator Access","href":"/platforms/shopify/granting-collaborator-access"},{"title":"A/B Testing","href":"/platforms/shopify/launching-AB-Tests"},{"title":"Offboarding from Order Protection","href":"/platforms/shopify/guides/offboarding-from-order-protection"},{"title":"Installing on Hydrogen","href":"/platforms/shopify/guides/hydrogen-install"},{"title":"OP Product Redirect Guide","href":"/platforms/shopify/guides/op-product-redirect"}]},{"group":"Magento","icon":"magento","pages":[{"title":null,"href":"/platforms/magento/installing-the-plugin"}]},{"group":"WooCommerce","icon":"wordpress","pages":[{"title":"Installing the plugin","href":"/platforms/woocommerce/plugin-install"}]},{"group":"BigCommerce","icon":"https://storage.googleapis.com/cdn.orderprotection.com/documentation-assets/bigcommerce-gray.svg","pages":[{"title":"Installing on BigCommerce","href":"/platforms/big-commerce/installing-on-big-commerce"}]}]},{"group":"Integrations","pages":[{"title":"Integrations","icon":"plug","href":"/integrations/index"},{"group":"Help Desk","pages":[{"title":"Gorgias","href":"/integrations/gorgias"},{"title":"Zendesk","href":"/integrations/zendesk"},{"title":"Richpanel","href":"/integrations/richpanel"},{"title":"Kustomer","href":"/integrations/kustomer"}]},{"group":"Shopping Experience","pages":[{"title":"Rise.ai","href":"/integrations/rise"},{"title":"Tapcart","href":"/integrations/tapcart"},{"title":"Klayvio","href":"/integrations/klayvio"},{"title":"Rebuy","description":"Add Order Protection to your Rebuy Smart Cart.","href":"/integrations/rebuy"}]},{"group":"Subscriptions","pages":[{"title":"Smartrr","href":"/integrations/smartrr"},{"title":"Stay AI","description":"All your subscription orders can now offer guaranteed delivery","href":"/integrations/stay-ai"},{"title":"Recharge","href":"/integrations/recharge"},{"title":"Ordergroove","href":"/integrations/ordergroove"},{"title":"Skio","href":"/integrations/skio"},{"title":"Loop Subscriptions","href":"/integrations/loopwork"}]},{"group":"Fulfillments","pages":[{"title":"ShipStation","href":"/integrations/shipstation"}]},{"group":"Returns","pages":[{"title":"Loop","href":"/integrations/loop"},{"title":"Parcel Lab","href":"/integrations/parcellab"},{"title":"Refundid","href":"/integrations/refundid"}]}]},{"group":"Guides","pages":[{"title":"Guides","icon":"book-open","href":"/guides/index"},{"group":"All Guides","pages":[{"title":"Integrating by API","href":"/guides/how-api-integration-works"},{"title":"Adding a custom domain","href":"/guides/whitelabel"},{"title":"Fulfilling Order Protection","href":"/guides/fulfilling-order-protection"},{"title":"Excluding Order Protection from Discounts","href":"/guides/exclude-op-from-discounts"}]}]},{"group":"Education Basecamp","pages":[{"title":"Education Basecamp","icon":"campground","href":"/education-basecamp/index"},{"group":"General","pages":[{"title":"Onboarding with Order Protection","href":"/education-basecamp/general/onboarding"},{"title":"Frequently Asked Questions","href":"/education-basecamp/general/faq"},{"title":"Order Protection as an Optional Service","href":"/education-basecamp/general/order-protection-optional-service"},{"title":"Order Protection App Walkthrough","href":"/education-basecamp/general/dashboard-walkthrough"}]},{"group":"Analytics","pages":[{"title":"Dashboard","href":"/education-basecamp/analytics/dashboard"},{"title":"Issue Gallery","href":"/education-basecamp/analytics/gallery"}]},{"group":"Finance","pages":[{"title":"Claim Types Credited","href":"/education-basecamp/finance/claim-types-credited"},{"title":"How Payouts Work","href":"/education-basecamp/finance/how-payouts-work"},{"title":"How Payments Work","href":"/education-basecamp/finance/how-payments-work"}]},{"group":"Claims","pages":[{"title":"How the Claim Queue Works","href":"/education-basecamp/claims/how-the-claim-queue-works"},{"title":"Filing a Claim","href":"/education-basecamp/claims/filing-a-claim"},{"title":"Product Taxonomy (Components \u0026 Bundles)","href":"/education-basecamp/claims/product-taxonomy"},{"title":"Claim Settings","href":"/education-basecamp/claims/claim-settings"},{"title":"Store Credit","href":"/education-basecamp/claims/store-credit"},{"title":"Claim Automation","href":"/education-basecamp/claims/claim-automation"},{"title":"Manufacturer \u0026 Extended Warranties","href":"/education-basecamp/claims/warranties"}]},{"group":"Customizations","pages":[{"title":"Branding Your Claim Portal","href":"/education-basecamp/customizations/branding-your-portal"},{"title":"Email Designer","href":"/education-basecamp/customizations/emails"},{"title":"Widget Customization","href":"/education-basecamp/customizations/widgets"},{"title":"Info Modals","href":"/education-basecamp/customizations/info-modals"}]},{"group":"Settings","pages":[{"title":"Message Macros","href":"/education-basecamp/settings/message-macros"},{"title":"Order and Claim Tags","href":"/education-basecamp/settings/order-and-claim-tags"},{"title":"Policies","href":"/education-basecamp/settings/policies"},{"title":"Team Members","href":"/education-basecamp/settings/team-members"},{"title":"Standard Operating Procedures (SOPs)","href":"/education-basecamp/settings/sops"}]}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks/introduction"}]},{"tab":"Developer Platform","pages":[{"title":"Developer Platform","href":"/developer/introduction"}]}]},"title":"Smartrr - OrderProtection","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-BbYRHtLl.js","DynamicMarkdown-DN96a4Ur.js","zoom-image-lightbox-D7yRe3On.js","lightbox-handle-r17bVUz3.js"]}