| 开发者 | sergej7 |
|---|---|
| 更新时间 | 2026年10月22日 22:14 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[wccs_cross_sell] to place suggestions anywhere.cross-sell-with-discounts-for-woocommerce folder to /wp-content/plugins/, or install it from the WordPress Plugins screen.Open any product, go to the Cross-Selling tab, tick "Use as cross-sell" and choose the trigger categories. Whenever a customer has a product from one of those categories in the cart, your product is recommended as a cross-sell in the mini-cart, cart and checkout.
Show relevant related products at the moment of purchase and add an optional automatic discount. Well-placed, one-click cross-sell offers in the mini-cart, cart and checkout are a proven way to lift the average order value without discount codes or extra campaigns.
Yes. The discount is optional — leave it empty (or 0) and the product is simply recommended without a price change.
No. Triggers are category-based, which keeps rules low-maintenance. The optional Pro add-on additionally lets you trigger by product tag.
There is a global "Maximum suggestions" setting (1–20, default 4). The combined list is sorted (by priority, popularity, price or newest) and then capped to that number.
Yes. Variable products show a "Choose option" link and a "from" price. The Pro add-on adds in-place variant selection and a Quick-View popup.
Yes. The cross-sell discount is applied on top of the current price — if the product is on sale, it is calculated from the sale price (never from the higher regular price). The original price is shown struck through.
No, it is a price reduction applied to the cart item. By default it combines with WooCommerce coupons; under WooCommerce → Cross-Sell → Discounts you can keep coupons off items that already have a cross-sell discount instead. A trigger product must be in the cart for the discount to apply.
Yes. On the product's Cross-Selling tab, set "Discounted quantity" to a fixed maximum per order — further items of that product are charged at the regular price, and the cart shows both parts separately. The Pro add-on can instead give one discounted item per trigger item in the cart.
Yes — use [wccs_cross_sell] to place suggestions anywhere, which is handy for block themes or custom templates.
Yes. The plugin uses the standard WooCommerce mini-cart, cart and checkout hooks and works with common themes such as Storefront, Astra, Kadence and Flatsome (a dedicated adapter keeps full Flatsome compatibility). Because suggestions render through WooCommerce — or via the [wccs_cross_sell] shortcode — they work independently of Elementor and other page builders.
Yes. Suggestions are rendered after the checkout block (hydration-safe), and adding a product refreshes the Store API cart and totals without a page reload.
Yes. Under WooCommerce → Cross-Sell → Layout you can choose a stacked list, a horizontal slider (dots or arrows), or a responsive grid with image formats (4:3, 1:1, 3:4) and overlay styles. You can also set the heading, the add-to-cart button label/icon/colour, card colours and border, and show or hide the quantity selector.
No. The free plugin runs entirely inside your WordPress installation and requires no external account or SaaS connection.
The suggestion and its automatic discount are removed immediately — everything is recalculated on each cart update, including at checkout.
Deleting the plugin (not just deactivating it) removes all of its data — the settings option, product metas and any legacy category metas — site-wide. There are no custom database tables and no cron events.
That is provided by the optional Pro add-on (role-based pricing per role, with per-product overrides). The free plugin does not include role discounts.
wccs_qty_limit_modes and wccs_discount_qty_limit, and WCCS_Engine::trigger_quantity_for() for add-ons.wccs_is_suggestable filter so add-ons can hide individual suggestions.wccs_after_heading (right after the suggestions heading) and wccs_item_badge (inside each suggestion card). They are used by the optional Pro add-on's info badge and have no visible effect on their own.