WooCommerce plugin docs / Upsell & Cross-sell

AI Upsell & Cross-sell

Overview

Upsell means a higher-value alternative from your catalog. Cross-sell means a complementary product (accessory). Both are selected from WooCommerce, not generated as fake SKUs.

AI is optional: it may suggest accessory search queries. Without a key, WooCommerce Upsells, Cross-sells, Related products, and catalog search still feed the recommender.

How It Works

  1. Context: current product page, cart contents, or chat request (Recommendation_Context_Builder).
  2. Related_Product_Source reads WooCommerce linked products first.
  3. Recommender searches/scores additional live products.
  4. Classifier filters (in-stock, not already in cart, etc.).
  5. Slice to Maximum recommendations (1–4, default 3).
  6. Widget displays cards. Add-to-cart uses the same confirmation rules as search cards.

REST: GET /aiwsa/v1/recommendations?context=product|cart when the widget opens (not on raw page load).

How to Enable It

WooCommerce → AI Assistant → RecommendationsEnable AI upsell & cross-sell plus the placement toggles. Keep Enable recommendations tool on.

Configuration

Recommendations settings.

Frontend Usage

  • Open chat on a product page → optional suggestion block.
  • Open mini-cart → complementary cards if cart recommendations are on.
  • Ask “what else should I get?” if chat recommendations are on.

Example customer journey

  1. Shopper views a DSLR product page and opens the assistant.
  2. Plugin loads WooCommerce Cross-sells (memory card, bag).
  3. Shopper adds the camera from chat (confirms).
  4. Mini-cart shows the bag as a complementary suggestion.
  5. Shopper adds the bag, then Checkout to WooCommerce checkout.

Behavior

SituationWhat happens
Linked products filledThose IDs preferred
No linked productsCatalog search / related
No AI keySame, without query expansion
Feature offNo suggestion blocks
REST 404 on /recommendationsWidget swallows error; chat still works
Out of stock candidatesDropped by validator

Add-to-cart behavior

Same as Cart: AI-staged adds need Confirm. Prices cannot be set by the client.

Limitations

  • Not a machine-learning personalization cloud.
  • Semantic “customers who bought” engine is WooCommerce related/linked + search, not a third-party CDP.
  • Maximum 4 cards per block.

Troubleshooting

Empty suggestions: add Linked Products on the product, ensure items are purchasable, enable the tool, check REST permalinks if the network tab shows 404.