Docs
Back to site Sign in

Getting started

Add the storefront widget

Add the Otis widget to your storefront so shoppers can choose how they buy, subscribe, or rent on the product page, and manage their orders from their account. Otis ships native theme app blocks, so no theme code changes are needed.

Purchase options block#

The purchase options block lets shoppers choose Purchase, Subscribe, or Rent on the product page. The fastest route is from the dashboard checklist: Go live on your storefront > Add the purchase-options widget to your theme opens the Shopify theme editor with the Otis block ready to place.

  1. In your Shopify admin, go to Online Store > Themes.
  2. Click Customize on your active theme.
  3. Open the Product template.
  4. In the product information section, click Add block and add the Otis purchase options block.
  5. Position the block where you want it, then Save.

Customise the purchase options widget#

Every part of the widget is configurable from the theme editor, so it fits your product page without touching code. Select the Otis purchase options block in the theme editor and its settings appear in the right-hand panel. The two settings at the top control the overall shape; the rest set colours, labels, benefit text, borders and radii for each part of the widget (tabs, plan and sale panels, the summary card, the subscribe nudge, benefits, and add-ons).

Layout#

Layout switches the widget between two arrangements:

  • Horizontal (the default) stacks the tabs above the panel, the classic product-page look.
  • Vertical moves the tabs into a side rail to the left of the panel, which suits a wide product column. On narrow screens there is no room for a side rail, so vertical automatically collapses back to the horizontal stack, and the widget stays usable on mobile without any extra work from you.

Set it under the block's settings at Online Store > Themes > Customize > Product template > (the purchase options block) > Layout.

Buy button#

Buy button decides which Add to cart button drives the Buy, Subscribe and Rent tabs:

  • Use theme's button (the default) reuses your theme's own Add to cart button. The widget syncs the shopper's choice into your product form and gates that button until any required Terms & Conditions are accepted, showing it faded while it waits so the shopper can see why it does nothing. If your theme adds a sticky add to cart bar as the shopper scrolls, that button is gated in the same way. This keeps your theme's styling and its accelerated (wallet) checkout buttons.
  • Use widget's own button renders the widget's own Add to cart button and hides your theme's native button (including any sticky add to cart bar's button) and its accelerated checkout buttons, so there is a single, consistent call to action. Choose this when your theme's product form does not sit well with the widget. On the Rent tab, the widget's own button also shows the running total, so the shopper reads "Rent for £150.00" rather than a generic Add to cart.

On the Rent tab, whichever button you choose, Otis takes over the click: it creates the rental's selling plan for the dates the shopper picked before anything reaches the cart, and keeps the button disabled until both dates are set. Accelerated (wallet) checkout buttons stay hidden on the Rent tab in both modes, because an express purchase cannot carry a per-customer rental plan.

In the widget's own-button mode, adding to cart takes the shopper straight to the cart, the same behaviour as the Rent tab.

Check the Rent tab with your theme#

A rental is priced from the dates your customer picks, so Otis works out that price in the moment between them clicking Add to cart and the item landing in the basket.

Nearly every theme allows this. A small number build their Add to cart button in a way that does not give Otis that moment, and on those themes a rental can arrive in the basket as an ordinary full-price purchase with no dates on it.

This only affects the Rent tab, and only when Buy button is set to Use theme's button. Buy and Subscribe are never affected, and neither is any theme when you use the widget's own button.

Check this once per theme, before you start taking rental bookings, and again after any theme update.

How to check

  1. Open a product on your storefront that has rentals turned on.
  2. Go to the Rent tab and pick a start and end date. The Add to cart button stays greyed out until both dates are set, which is normal.
  3. Write down the Total shown in the rental summary, just above the button.
  4. Add it to the basket and look at the basket line.

A working theme shows the rental total you wrote down, with the rental dates listed under the product name.

A theme with the problem shows the product's ordinary price and no rental dates. The price is the giveaway: if you were quoted £150.00 for a week and the basket says £900.00, the button bypassed Otis.

Your theme's Add to cart wording does not change on the Rent tab, so do not expect the button itself to mention the rental price. That only happens with the widget's own button.

If your theme has the problem

Set Buy button to Use widget's own button, then run the check again. Otis draws its own Add to cart button and your theme's steps aside, which removes the problem completely. Your customers also get the running total on the button, reading "Rent for £150.00" rather than a generic Add to cart.

Benefits#

The short reassurance lines under each tab ("Free delivery", "2-year warranty" and so on) are yours to write. Each tab has three, set independently, so the Buy tab can promise a warranty while the Rent tab promises flexible dates.

  • Edit them under the block's Benefits settings: Buy tab - benefit 1 through Rent tab - benefit 3.
  • Clear a field to hide that line. Clear all three on a tab and the row disappears from that tab entirely.
  • Three per tab is the maximum. The icon is fixed to the position, so the first line always carries the delivery icon whatever you write there.

Advanced: override the styling with CSS#

Beyond the theme-editor settings, the widget is built to be re-skinned with your own CSS. Every element has a stable, namespaced class (all prefixed tc-), and every colour and surface the widget paints resolves through a named CSS custom property. You can override any of them in your theme's custom CSS (in the theme editor under Theme settings, or in your theme's CSS asset) without changing a single block setting. The widget's own stylesheet loads with the block, so if a rule of yours does not take effect, give it more weight with a more specific selector or !important.

The custom properties fall into two groups. The ones driven by the block's colour settings live on .tc-purchase-options-block (for example --tc-primary-color, --tc-accent-color). The surface defaults live on .tc-widget and .tc-portal, and reproduce the built-in look until you override them:

Custom propertyControls
--tc-primary-colorPrimary accent: active tab, selected plan border, primary button
--tc-accent-color / --tc-accent-foreground-colorThe "Best value" plan badge
--tc-atc-background / --tc-atc-foregroundThe widget's own Add to cart button (Rent, and Buy/Subscribe in own-button mode)
--tc-atc-border-radiusRadius of that button
--tc-surfaceBackground of the modals and the rental calendar
--tc-overlayThe dimmed backdrop behind a modal
--tc-shadowElevation shadow on modals and the calendar
--tc-hairlineSubtle internal dividers
--tc-error-colorInline error text
--tc-foreground-muted / --tc-border-color / --tc-border-color__hoverMuted text and default borders

For example, to give the button a dark, square look and lighten the modal surface:

/* Your theme's custom CSS */
.tc-widget {
  --tc-atc-background: #1a1a1a;
  --tc-atc-foreground: #ffffff;
  --tc-atc-border-radius: 0;
  --tc-surface: #fafafa;
}

Some of what the widget shows is attached to the page body rather than nested inside the widget, so that no part of your theme can clip it: the rental calendar and the date pickers, and the pop-ups for Terms & Conditions, insurance and deposits. Each of those carries the .tc-portal class, and because they sit outside .tc-widget, a rule written for .tc-widget on its own never reaches them. Name both selectors whenever you override a surface property, so the widget and its pop-ups stay in step:

.tc-widget,
.tc-portal {
  --tc-surface: #1f1f1f;
  --tc-hairline: rgba(255, 255, 255, 0.12);
}

The first group, the properties driven by the block's colour settings, is copied onto those pop-ups as an inline style when they are built, so a rule of your own is outranked there. Add !important when you want to change one of them on a pop-up:

.tc-portal {
  --tc-selling-plan-background-active: #efe7ff !important;
}

When a property is not enough and you need to change layout or typography, target the classes directly. The main ones are .tc-widget (the outer wrapper, which also carries data-layout="horizontal|vertical"), .tc-tabs and .tc-tab-btn (the tab strip), .tc-panel (a single tab's panel), .tc-plans and .tc-plan-btn (the subscription plan grid), .tc-breakdown (the summary card), .tc-nudge-card (the subscribe nudge on the Buy tab), .tc-benefits-inline (the benefits row), and .tc-atc (the primary button, with .tc-atc--buy, .tc-atc--subscribe, and .tc-rental-atc for targeting a specific tab's button). For example, to force the plan buttons to a single column and uppercase the tab labels:

.tc-plans {
  grid-template-columns: 1fr;
}
.tc-tab-btn {
  text-transform: uppercase;
}

Otis prices block (optional)#

The prices block shows pricing for every model on collection and product-list cards, not just the default Shopify price.

  1. In the theme editor, open the Product Card used on collection and product-list pages.
  2. Add the Otis Prices block.
  3. Save.

Membership auto-add (required for one-off charges)#

To raise one-off charges (such as a late fee or a damage fee) against a subscription or rental order after checkout, Otis adds a small hidden membership line to those orders. The Membership auto-add app embed puts that line in the cart automatically whenever the shopper has a subscription or rental in their cart, and removes it when they do not.

App embeds are turned off by default, so enable it once per theme:

  1. In your Shopify admin, go to Online Store > Themes.
  2. Click Customize on your active theme.
  3. Open App embeds in the left-hand panel (the toggle list near the bottom).
  4. Turn on Membership auto-add.
  5. Save.

Enable this before you start taking subscription or rental orders you may want to charge later. Once the embed is live, Otis activates the matching checkout guard automatically. Keep the embed switched on: turning it off means new orders will not carry the membership line, so one-off charges cannot be raised against them.

Rental plan name cleanup (optional)#

Every calendar rental gets its own selling plan in Shopify, created for the dates your customer picked. Shopify will not allow two plans in the same group to share a name, so Otis adds a short reference code to each one: "Calendar rental (a1b2c3d4e5f6)". Shopify then prints that whole name on the cart line, code included. The Rental plan name cleanup app embed hides the code, so your customers just see "Calendar rental".

App embeds are turned off by default, so enable it once per theme:

  1. In your Shopify admin, go to Online Store > Themes.
  2. Click Customize on your active theme.
  3. Open App embeds in the left-hand panel (the toggle list near the bottom).
  4. Turn on Rental plan name cleanup.
  5. Save.

This covers your cart page and cart drawer. The reference code still appears on order confirmation emails, the order status page, and the order in your Shopify admin, because those pages are rendered by Shopify and your theme cannot reach them. The rental dates themselves always show on the cart line as a separate Rental dates property, so nothing is lost by hiding the code.

Checkout guardrails (automatic)#

Otis ships checkout validations that stop a shopper checking out with a cart that is missing something the product needs. You do not install or configure these yourself: they are part of the Otis app and activate automatically once the app is installed and the relevant feature is in use. They are the server-side backstop to the storefront widget, which already gates Add to Cart in the browser, so a shopper cannot get around the widget by editing their cart.

  • Membership guardrail: blocks checkout when a subscription or rental is in the cart without its membership line. It works with the Membership auto-add app embed above, and Otis activates it when membership is set up.
  • Deposit guardrail: blocks checkout when a product that requires a deposit is in the cart without its refundable deposit line, so a shopper cannot remove the deposit and still buy. Otis activates it the first time you save a deposit profile.

These run on the checkout-validation permission, which is granted when you install or update the Otis app. If you have just turned on deposits or membership, make sure the app is up to date so the matching guardrail is live. You can see the active guardrails in your Shopify admin under Settings > Checkout, in the checkout rules list.

Customer account extensions#

Otis adds customer account extensions so shoppers can manage their subscriptions and rentals from their Shopify account: view orders, swap, skip, cancel, update payment details, and start returns.

These are part of the Otis app and are found in the Shopify extension app in your admin. There are two account pages plus a signpost block on the order status page.

The two account pages#

  • Otis Orders Overview: a page in the customer account that lists the customer's Otis subscriptions and rentals. Add it to the customer account navigation so customers can reach it from the account menu.
  • Otis Order Details: shows the Otis details and management actions on the customer's order page.

Enable and place these from Settings > Customer accounts in your Shopify admin.

The order status signpost block#

Otis Subscription Manage is a block for the Order status page, the page a customer sees after checkout and when they reopen their order. It signposts the customer to their Shopify account to manage their subscription. Add it from the checkout and accounts editor for the Order status page.

It only shows when there is a Otis subscription in the cart.

Verify#

Open a product page on your storefront and confirm the widget appears with the models you enabled.

Change a variant and confirm the options update.

Complete a test order and verify the full customer journey.

If you sell rentals, run the Rent tab check above against each theme you use.

Next steps#

Was this page helpful?
Still stuck? Email us