Skip to navigation

Adding a Scrollbar to Inactive Subscriptions in the Subscription Manager

Add a scrollbar to the Inactive Subscriptions section in v0 to prevent page scrolling
View as Markdown

Learn how to add a scrollbar to the Inactive Subscriptions section in Subscription Manager v0 to prevent page scrolling and create a more compact view.

Your subscribers can view and reactivate their inactive subscriptions within the Inactive Subscriptions section of the Subscription Manager. Depending on the customer and the number of inactive subscriptions, this list can be quite long and lead to page scrolling. To prevent this, a scrollbar can be added to make the section more compact and eliminate page scrolling.

Requirements

This article only pertains to v0 versions of the Subscription Manager (versions starting with 0.x). Subscription Manager versions 25.x already include the scrollbar out of the box — no action needed.

How to Tell What Version You’re On

Before the September 2024 release of v25, all Subscription Manager installations were on version 0, displayed in the Theme Designer as version 0.X.X. You can check which version you’re on by going to Ordergroove > Subscription > Subscription Manager.

The live theme card in Subscription Manager, with the theme version, 0.33.1, highlighted

Accessing the Advanced Editor

We’ll be using the advanced editor to modify the Subscription Manager. You can access it through your Ordergroove Admin:

  1. Log in to Ordergroove.
  2. Go to Subscriptions on the top toolbar, and select Subscription Manager.
  3. Toggle Advanced on the top left.
Support

Some aspects of this article require technical expertise with coding languages. This is self-serve and outside of the normal support policy.


Adding the Scrollbar

Open /views/inactive-subscriptions.liquid.

Locate lines 2–7:

<section id="og-inactive-subscriptions">
{% for subscription in subscriptions | reject('live') %}
{% if index === 0 %}
<h1 class="og-title">{{ 'subscriptions_inactive_header' | t }}</h1>
{% endif %}
<div class="og-inactive-subscription">

And replace them with this:

<section id="og-inactive-subscriptions">
{% for subscription in subscriptions | reject('live') %}
{% if index === 0 %}
<h1 class="og-title">{{ 'subscriptions_inactive_header' | t }}</h1>
{% endif %}
{% endfor %}
<div class="og-inactive-wrapper">
{% for subscription in subscriptions | reject('live') %}
<div class="og-inactive-subscription">

At the end of the file, add a closing </div> tag above the closing </section> tag:

</div>
</div>
</section>

Go to the Styles section and click + ADD STYLE to add a file called wrapper.less.

The Create a new file dialog in the Subscription Manager advanced editor, with wrapper typed in the name field and the file extension dropdown set to .less. Cancel and Create buttons are at the bottom right.

Inside the new file, add the following code:

.og-inactive-wrapper {
overflow-y: scroll;
height: 250px;
}
@media (max-width: 430px) {
.og-inactive-wrapper {
height: 150px;
}
}

The height may need to be increased or decreased to achieve the desired effect.

Still in the Styles section, open main.less and add the following:

@import './wrapper.less';

The result should look something like this:

The Subscription Manager's Inactive Subscriptions section after the change, in a fixed-height box with a vertical scrollbar at its right edge. The first inactive subscription, Peach Juice, shows its quantity, a Reactivate button, and its cancellation date, and the next one, Apple Juice, is cut off below.