Linux 软件免费装

Cross-Sell with Discounts for WooCommerce

开发者 sergej7
更新时间 2026年9月20日 00:54
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce cart upsell discount cross-sell

下载

1.13.1 1.13.2 1.14.2 1.12.0 1.14.0 1.13.3 1.14.1 1.14.3 1.15.0

详情介绍:

Cross-Sell with Discounts for WooCommerce shows the right add-on products at the moment customers are ready to buy — in the mini-cart, on the cart page, and at checkout — with an optional automatic discount and a savings badge. You decide which products are suggested and which category triggers them. As soon as a customer has a product from a trigger category in the cart, the matching cross-sell products appear as one-click suggestions. The discount applies automatically while a trigger product is in the cart, and disappears when it is removed — no coupon codes needed. The plugin is theme-neutral: it uses the standard WooCommerce mini-cart hook and works with Storefront, Astra, Kadence and other common themes. For themes without a matching mini-cart hook (or block themes), a shortcode and a block are provided. Optional adapters keep full compatibility with the Flatsome theme and the WooFood plugin. Key features How the discount works The discount is a price reduction on the cart item, not a WooCommerce coupon, so it combines cleanly with coupons. An active sale price stays the basis: the cross-sell discount is calculated from the lower of the regular and sale price and never undercuts the sale price. Pro add-on A separate Pro add-on adds role-based discounts: give individual user roles an extra discount on cross-sell products, configurable per role (percentage and "add" or "replace" mode), with optional per-product overrides. The free plugin works fully on its own; the Pro add-on is optional.

安装:

  1. Upload the cross-sell-with-discounts-for-woocommerce folder to /wp-content/plugins/, or install it through the WordPress Plugins screen.
  2. Activate the plugin through the Plugins menu in WordPress. WooCommerce must be installed and active.
  3. Configure suggestions on two levels:
  4. Per product (Cross-Selling tab in the product editor): enable the product as a suggestion, set an optional discount, priority, short description, and the trigger categories.
  5. Per category (category editor): enable the category as a trigger and set how many suggestions it contributes.
  6. Set the global display under WooCommerce → Cross-Sell: heading, button label/icon, display locations (mini-cart / cart / checkout), and performance/caching options.

屏幕截图:

  • Grid layout in the off-canvas mini-cart, with a customizable heading, an optional per-product discount, and full control over which elements are shown.
  • Optional info badge with a tooltip (Pro) — a simple message, or a dynamic message based on the applied discount rules.

升级注意事项:

1.15.0 New global "maximum suggestions" and sorting options (priority, popularity, price, newest). Note: the per-category enable/limit screen was removed — every target category you set now triggers, capped by the new global maximum. 1.14.3 New option to hide WooCommerce's own cross-sells and related products, plus a fix for flickering mini-cart images after add-to-cart. 1.14.2 Layout fix: cross-sell suggestions no longer overlap other theme elements (e.g. a mini-cart footer) in some themes. 1.14.1 Variable products now work as cross-sell suggestions, plus card color/border options and a 4-column cart grid. 1.14.0 New Grid layout with image formats and overlay styles for cross-sell suggestions. 1.13.3 New slider layout for cross-sell suggestions, plus an optional button color. 1.13.2 Higher per-category suggestion limit (up to 20) and clearer settings wording. 1.13.1 Refreshed settings screen and new add-on hooks. No configuration changes required. 1.12.0 Initial public release.

常见问题:

Does it work with my theme?

Yes. The plugin uses the standard WooCommerce mini-cart hook and works with common themes such as Storefront, Astra, and Kadence. For themes without a matching mini-cart hook or for block themes, use the [wccs_cross_sell] shortcode or the "Cross-Sell Suggestions" block. A dedicated adapter keeps full Flatsome compatibility.

Can I change how the suggestions look?

Yes. Under WooCommerce → Cross-Sell → Layout you can choose a stacked list, a horizontal slider (with dots or arrow controls), or a responsive grid. For the grid you set the maximum columns per location (mini-cart, cart, checkout) and an image format (landscape 4:3, square 1:1, or portrait 3:4); card widths are calculated automatically for your theme. You can also set the heading, the add-to-cart button label/icon/colour, and show or hide the quantity selector.

Does it support the block-based cart and checkout?

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.

Is the discount a coupon?

No. It is a price reduction applied to the cart item, so it combines cleanly with WooCommerce coupons. A trigger product must be in the cart for the discount to apply.

What happens to my data when I uninstall?

Deleting the plugin (not just deactivating it) removes all of its data: the settings option, product metas, and category metas — multisite-wide. There are no custom tables or cron events.

Can I give specific user roles an extra discount?

That is provided by the optional Pro add-on (role-based discounts, per role, with per-product overrides). The free plugin does not include role discounts.

更新日志:

1.15.0 1.14.3 1.14.2 1.14.1 1.14.0 1.13.3 1.13.2 1.13.1 1.13.0 1.12.0