WooCommerce Add to Cart Button Missing on Product Pages

Find out why a WooCommerce Add to Cart button is missing on a product page, from price and stock settings to variations, theme templates, and scripts.

Last updated:

Reviewed for accuracy by Jesse Nickles

Check what is missing

Open the affected product page in a private browser window while signed out of WP Admin. First identify the symptom; purchase buttons on shop and category grids can behave differently from those on individual product pages.

What you seeCheck first
No purchase buttonProduct type, price, stock status, then the product template and hidden controls
Button disabledAvailability and required variation selections, before investigating scripts
Button visible but unresponsiveBrowser console errors, cached scripts, and plugin conflicts

Start with the product settings when the button is absent or disabled. Go straight to the script checks below if the button is visible but does nothing. Do not force an unavailable product's button to look enabled with CSS or JavaScript.

Check price, stock, and product type

  1. In WP Admin, go to Products → All Products and edit the affected product.
  2. Confirm that the product is Published and check its type under Product data.
  3. For a Simple product, check General → Regular price. Enter 0 for a free product if appropriate; leaving the price empty is not the same as setting a zero price and can make the product non-purchasable. Variable products have prices on their individual variations, not just the parent product.
  4. Check Inventory for stock status, tracked quantity, and backorder settings. Do not allow backorders solely to make a button appear.
  5. Save with Update and retest the published product page while signed out.

External/Affiliate products normally use a link to another seller, while Grouped products have different purchase controls. Catalog-mode or quote-request extensions may intentionally remove buying options. WooCommerce's product editor documentation explains these differences.

Check variable-product options

A Variable product needs a valid, purchasable variation. In most classic forms, shoppers must choose each required attribute. If the button is disabled or no available option can be selected:

  1. Edit the product and open Product data → Attributes. Confirm the intended values are present and Used for variations is enabled where needed.
  2. Under Variations, confirm the necessary combinations exist, are enabled, have their own prices, and are in stock or permit backorders.
  3. Save, then choose a valid combination on the product page and check that Add to Cart becomes available.

In the newer Add to Cart + Options (Beta) block, WooCommerce can automatically select an attribute when only one valid choice remains. Do not assume that behavior in older forms. A disabled button before the product has a purchasable selection is expected; if it remains disabled after selecting an available, priced variation, check the scripts and customizations. See WooCommerce's variable product guide and newer add-to-cart behavior.

Check product templates and theme changes

If a product is published, priced, and in stock but has no purchase controls, inspect its template. Classic WooCommerce layouts use PHP templates and hooks; a theme, page builder, or extension may remove the purchase form, and CSS can hide it. Check WooCommerce → Status → System status → Templates for overrides. If any are outdated, follow the outdated WooCommerce templates guide rather than deleting files blindly.

For block-based product pages, open Appearance → Editor → Templates → Single Product and inspect the actual purchase form in List View. Existing templates may use the older Add to Cart with Options block, while newer ones can use Add to Cart + Options (Beta). Ensure the assigned template includes the appropriate form; a block-template issue is different from a missing classic PHP hook.

HoverCraft uses classic WooCommerce product layouts and styles quantity, variation, and Add to Cart controls. Its WooCommerce Product Pages documentation describes the disabled state when a selection is incomplete or unavailable. WooCommerce still determines whether a product can be purchased.

Test scripts and isolate conflicts

If the button is present but does not respond, clear relevant browser and page caches, including CDN or JavaScript optimization caches, and reload the product page. Open the browser's developer tools, select Console, and repeat the action. Errors involving variation scripts, missing files, or plugins are useful clues. See WooCommerce's JavaScript troubleshooting instructions.

If the problem persists, back up the store and follow WooCommerce's conflict-testing procedure on staging. Do not switch the live theme or disable checkout-related plugins during sales.

  1. Test the same product using a default WordPress theme or Storefront. If the controls work, inspect customizations in the original theme.
  2. If the problem remains, disable unrelated plugins on staging while keeping WooCommerce and any required test dependencies active. Retest, then restore plugins one by one to identify a conflict.
  3. Finally, check as a signed-out shopper on desktop and mobile. Select a valid variation if applicable, add the product, and confirm the cart quantity.