Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Buy Now button skips variant choice: how to find and fix it

CNV-150Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

A variant is one version of a product, such as size M in blue. Normal Add to cart buttons send the chosen variant to the cart. Express buttons often work differently. They skip the cart and jump straight to checkout, and they may be built from a separate script or a hidden form.

The issue appears when that shortcut ignores the selector. Either the button works before any option is chosen, or it always uses the first variant, or it keeps the variant from page load after the shopper changes it.

Why it costs you leads or sales

Shoppers who use express buttons are often ready to pay. If checkout shows the wrong size, they either abandon, or they pay and then return the item. Both cost you money. A wrong variant can also be out of stock, which ends the checkout with an error.

Express wallets such as Apple Pay show the price and item before confirmation. A mismatch there is easy to notice and erodes trust at the final step.

Where the journey goes wrong
  1. Product pageShopper selects size L
  2. Buy Now clickButton sends default size S
  3. CheckoutWrong item shown
  4. OrderAbandoned or returned

The shopper picks a variant, but the express button uses a different one.

Express button ignores the choice

The shopper's selection never reaches the express checkout.

How to check if your site has it

Test on a product with at least two options, on a phone and a desktop. Use a private window so saved state does not hide the problem.

Manual test
  • Open a product with several variants without choosing any option, then click Buy Now. Does it stop and ask for a choice?
  • Choose the last option in the list (not the first) and click Buy Now. Does checkout show that exact option?
  • Change the option twice, then click the button. Does checkout show the final choice?
  • Change the quantity and check it carries over.
  • Try an out-of-stock variant. The button should be disabled or show a clear message.
  • Repeat with the wallet buttons (Apple Pay, Google Pay, PayPal) and read the item shown in the payment sheet.
  • Repeat after a page reload and after using the browser Back button.

How to fix it

The cause is usually one of three things: the button is not wired to the selector, the theme or a customisation overrides it, or an app adds a second button that uses its own logic. Pick your platform below.

Fix by platform
  1. Test with a default theme

    Preview your product in a free theme such as Dawn. If it works there, your theme or an app is the cause.

  2. Check the dynamic checkout setting

    In the theme editor, open a product template and look at the Buy buttons block. Turn off 'Show dynamic checkout buttons' to test whether the wallet buttons are at fault.

  3. Remove conflicting apps

    Disable apps that add Buy Now buttons, sticky add-to-cart bars or quick-view popups, one at a time, and retest.

  4. Fix theme code

    If a custom button is used, make sure its form's id input is updated when the variant changes. Ask your theme developer or the theme support team to check this.

Example: read the chosen variant when Buy Now is clickedjavascript
document.querySelector('#buy-now').addEventListener('click', function (e) {
  var form = document.querySelector('form[action*="/cart/add"]');
  var variant = form.querySelector('[name="id"]').value;
  if (!variant) {
    e.preventDefault();
    alert('Please choose a size first.');
    return;
  }
  window.location.href = '/cart/' + variant + ':1';
});
Behaviour before and after

Broken

  • Button works with no option chosen
  • Checkout shows the first variant
  • Changing the option does not update the button

Fixed

  • Button waits for a choice
  • Checkout shows the chosen variant
  • Last selection always wins

How to confirm it's fixed

Confirm the fix
  1. Test every option on your top products

    Pick each size and colour, click the button and compare checkout with your choice.

  2. Test devices

    Run the same test on iOS Safari, Android Chrome and desktop.

  3. Test wallets

    Open the Apple Pay, Google Pay or PayPal sheet and read the item shown. Stop before you pay unless you use a test mode.

How to prevent it happening again

Prevention
  • Retest Buy Now buttons after every theme update, app install or custom code change.
  • Keep one express button system, not several overlapping apps.
  • Add the variant test to your release checklist.
  • Use a staging copy for theme edits.
  • Review order reports for sudden growth in returns or exchanges for a size or colour.

How FunnelGuard handles this

FunnelGuard does not check this yet. Checking that an express button respects the chosen variant is a possible future check.

FunnelGuard does run your real customer journeys on a schedule, including checkouts, and checks each step and the tracking hits. That can show when a product-to-checkout path breaks outright, but it does not compare the variant a shopper chose with the variant in checkout. The test journeys also stop before payment unless the store's test mode is set up.

Until then, use the manual test above on your best-selling products every time you change your theme or apps. You can start with the Free plan (1 site, 2 journeys, daily checks, no card) to watch the main purchase path, and run the variant check by hand.

Questions people ask

Why does my Buy Now button ignore the size I selected?

The button is probably not reading the current selection. It may use the variant from page load, a hidden default, or a separate script from an app. Test with your default theme and disable apps one by one to find the source.

Why does Shop Pay or Apple Pay show the wrong product option?

Wallet buttons are usually rendered by the platform from the form's variant value. If a theme or app does not update that value when the shopper changes the option, the wallet shows the old one.

How do I stop shoppers using Buy Now before choosing a variant?

Disable the button until an option is selected, or show a message asking for a choice. On many platforms you can also remove any default selection so the shopper has to choose.

How do I test whether my express checkout uses the right variant?

Choose the last option in the list, click the express button and compare the item in checkout or the wallet sheet. Repeat after changing the option more than once, on mobile and desktop.

Can an app cause the Buy Now button to pick the wrong variant?

Yes. Sticky add-to-cart bars, quick-view popups and Buy Now apps often add their own buttons with separate logic. Turn them off one at a time and retest.

Does FunnelGuard detect Buy Now buttons that skip variant choice?

No, not yet. It is a possible future check. For now you need to test by hand after each theme or app change.

Is this a serious problem?

It has a medium impact. It affects only shoppers who use the shortcut button, but those shoppers are often ready to buy, and wrong orders lead to refunds and returns.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.