| 开发者 | motylanogha |
|---|---|
| 更新时间 | 2026年9月12日 05:14 |
| 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.
Not automatically. The cart placements attach to the classic cart template, which the WooCommerce Cart block does not use. If your cart page is built with the Cart block, the settings screen says so and you can add [pair_recommendations] or [pair_recently_viewed] to that page in a shortcode block instead. The product-page block is unaffected.
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.