data-supercycle-option-name attribute on the option element. Use this attribute to target specific options from your theme’s CSS or JavaScript without relying on positional selectors.
This works for every method that renders option pickers: Subscription, Calendar, Membership, Resale, and Trade-in.
How it works
For each option you configure on a method, Supercycle renders a.supercycle-options__option element and sets data-supercycle-option-name to the option’s name (the value you entered in the Supercycle admin).
For example, an option named 1 month - insurance renders as:
Hide options with CSS
Hide every option whose name contains the wordinsurance:
Toggle options with JavaScript
Hide insurance options behind a toggle on the product page:The attribute is rendered by Supercycle, so it stays in sync if you rename or add options. Hidden options are still present in the DOM, only visually hidden, customers cannot select them while they are hidden.