Overview

Re:do optionally provides free return shipping to customers that purchase the Re:do Shopify product with their order.

To enable customers to purchase returns coverage, Re:do offers frontend integration via Web Components custom elements.

Functionality

Re:do displays a checkbox on the product detail page. Re:do’s backend merchant configuration can optionally exclude certain customers or products.

When the customer adds a product to the cart and the Re:do checkbox is enabled, the Re:do product is also added to the cart.

Only one Re:do product should be added to the cart. Once it has been added to the cart, the checkbox is hidden.

Install

Add the following script:

<script
  async
  src="<https://shopify-extension.getredo.com/web-components.js?widget_id=><widget_id>"
></script>

The parameter widget_id is an alphanumeric identifier corresponding to the merchant.

Elements

redo-shopify-checkbox

Guide

  1. Install the Re:do script.
  2. Add <redo-shopify-checkbox></redo-shopify-checkbox> to the page, usually underneath the “Add to Cart” button.
  3. Optionally, specify the current customer and product ID.
  4. Whenever the init event is fired, check for the existence of the Re:do variant in the cart.
  5. Whenever a product is added to the cart, inspect the value of the Re:do checkbox, and add the Re:do product if applicable.