skio
Help CenterAdmin API Docs
  • 👋Getting Started
  • 💻App Block Setup
    • What are app blocks?
    • Plan Picker
  • ✏️Manual Theme Setup
    • Manual install process
    • Auto-login to Skio from Shopify Account
  • 📏Rules
    • Rules API
    • Apply Volume Discounts
  • 📦Build-a-Box
    • Static
    • Dynamic
    • Sectioned
  • 🛍️Selling Plan
    • Getting Selling Plan Information
  • 👾Extras
    • Subscription Tags
    • One-click Checkout / Buy Now
    • Redirect Old Customer Portals
  • ❓Troubleshooting
    • Selling Plan Cannot Be Applied to Variant
  • 🛒Shopify API References
    • Liquid Docs
    • AJAX API Docs
    • Storefront GraphQL API Docs
Powered by GitBook
On this page
  1. Troubleshooting

Selling Plan Cannot Be Applied to Variant

This error typically occurs when the plan picker does not register that the selected variant has changed. This can occur for a variety of reasons, but the fix is usually the same:

In your theme's Javascript, often there is a function that is called on variant change. If not, create one. Within this function, add the following:

document.querySelector('[name=id]').dispatchEvent(new Event('change'))

This event is listened for within skio-plan-picker.js to call the update method that will apply the correct selling plan to the new variant.

PreviousRedirect Old Customer PortalsNextLiquid Docs

Last updated 1 year ago

❓