Order Protection integrates with Rebuy Smart Cart by adding our widget directly into your cart drawer — no theme edits required.
Before you begin
This integration requires a Checkout+ Order Protection widget — one that renders its own Secure Checkout button rather than only a toggle. If you’re not sure which version you have, or your cart doesn’t render its own checkout button, reach out to your Customer Success Manager or shared Slack channel before starting. Setting this up on a non-Checkout+ widget requires additional work on our side to avoid a checkout-button conflict with Rebuy’s own handler.Installation
1
Open Custom Code in Rebuy
In your Rebuy admin, go to Smart Cart → Custom Code, and place the block in the cart footer.
2
Add the Order Protection element and styles
Paste the following into the Custom Code block. This keeps your existing subtotal in place and replaces Rebuy’s native checkout button with Order Protection’s own Secure Checkout button, so the flow reads Subtotal → Order Protection → Secure Checkout.
If your Rebuy cart uses the default template, its DOM uses
.rebuy-cart__flyout-* classes instead of the data-rebuy-* attributes above. Open your live cart preview first and check which structure your store uses, then swap in the matching class selectors (for example .rebuy-cart__flyout-subtotal and .rebuy-cart__flyout-actions) before saving.3
Save and test
Save the Custom Code block, then open your storefront and add a product to the cart. You should see exactly one Order Protection row in the drawer. Run a real test checkout to confirm the Secure Checkout button adds the Order Protection line item and reaches your checkout page.
All done
Order Protection will now render inside your Rebuy Smart Cart for every customer, using your Secure Checkout button as the single path to checkout. Customers can file and edit claims per your normal store settings once an order is placed.
Want the subtotal hidden too?
If you’d rather not show a subtotal above the Order Protection widget at all, you can additionally hide[data-rebuy-component="cart-subtotal"] (or .rebuy-cart__flyout-subtotal on default templates) and drop the flex/order rules above. Keep in mind the Checkout+ widget doesn’t display a running total on its own, so with this variant your cart won’t show a price until checkout.

