Skip to main content

How to Fix the Error: "Variant Can Only Be Purchased with a Sales/Selling Plan" and "Expected String to Be an Integer: Selling Plan"

Updated over a week ago

If you are encountering an error related to the new Selling Plan API from Shopify, you need to add the necessary App Blocks to your product page.

Here's How to Add App Blocks to Your Product Page

  1. Open the "Theme Editor."

  2. Go to Products > Default Products.

  3. Under Product Information, click on Add Block, select Apps, and add the following blocks:

    • PreOrder Now - Popups

    • PreOrder Now - Plans

  4. Navigate to the Cart Page, add PreOrder Now - Popups, and save your changes.

Disable Shopify Purchase Options if App Blocks Can't Be Added

If your theme prevents you from adding the App Blocks, follow these steps:

  1. Go to "Settings" in the PON app and select "Default Settings."

  2. Disable Shopify Purchase Options.

  3. Click Save.

  4. After saving, click "Sync Selling Plan with Settings."

Disable Purchase Options on the Affected Product

  1. Go to Products in your Shopify admin.

  2. Select the product with the variant error.

  3. Ensure that Purchase Options are disabled for the product.

After completing these steps, the error should be resolved, and the app will function correctly.


Did this answer your question?