| 开发者 | motylanogha |
|---|---|
| 更新时间 | 2026年10月30日 19:18 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[pair_recommendations strategy="related" count="4" columns="4"] - a recommendation block. On a product page it uses that product; elsewhere it uses the cart. strategy is optional (related, tags, bestsellers, newest, recently).[pair_recently_viewed count="4" columns="4"] - the shopper's recently viewed products.Yes. The plugin works with WooCommerce products and shows nothing until WooCommerce is active.
You pick a strategy per block: same category by popularity (default), shared tags, best sellers, newest, or the shopper's recently viewed products. If there are not enough matches, the block is topped up with recent products so it is never empty.
Yes. WooCommerce upsells and cross-sells are chosen manually for each product. Pair generates recommendations automatically from your catalog, so you do not have to curate them product by product.
When a visitor opens a product, Pair stores that product's ID in a first-party cookie on their own device. It keeps only product IDs, holds no personal data, and never sends anything to an external service. The block simply shows those products again.
No. Blocks render with your theme's product-card markup and a small stylesheet, with no front-end JavaScript. Queries are bounded by your chosen product count.
Yes. Turn the product-page, cart and recently-viewed blocks on or off independently, and use the shortcodes to place a block anywhere.
Yes. On a cart page built with the Cart block, the cross-sell and recently viewed placements appear right after the block, the same as under the classic cart. If you already added [pair_recommendations] or [pair_recently_viewed] to that page yourself, Pair skips the automatic copy of that placement so it does not show twice. The suggestions are worked out when the page loads, so they do not change while the shopper edits the cart until the page is reloaded.
No. "Replace WooCommerce related products" on the settings screen hides WooCommerce's own related products while Pair's product-page block is on. It is on by default for new installs. Stores that installed Pair before 1.2.0 keep WooCommerce's related products until they tick the box.
Yes. This plugin is compatible with WordPress Multisite. Network activate it or activate it on individual sites; each site keeps its own settings and data.
pair/recommendations filter, so an add-on can curate or reorder the picks before they render.exclude into wc_get_products(). Seed and cart products are still omitted; they are dropped after the query instead.