Przejdź do głównej zawartości

Getting started

Ta treść nie jest jeszcze dostępna w Twoim języku.

Pair works as soon as WooCommerce is active. The defaults are intentionally useful: recommendations enabled, product-page and cart blocks on, three products, three columns, same-category matching and in-stock products only.

  • WordPress 6.5 or newer
  • WooCommerce 8.0 or newer
  • PHP 8.1 or newer

With WooCommerce inactive, Pair shows an admin notice and registers no storefront hooks.

  1. Install WooCommerce and make sure it is active.
  2. Install Plogins Pair from the plugin directory when it is live, or upload the plogins-pair folder to /wp-content/plugins/.
  3. Activate it.
  4. Open WooCommerce → Pair recommendations.

On the settings screen:

  1. Keep Enable recommendations checked.
  2. Keep On the single product page checked for the You may also like block.
  3. Keep Under the cart checked for cart recommendations.
  4. Pick a strategy for each block: same category, shared tags, best sellers, newest products or recently viewed.
  5. Leave Only recommend products that are in stock checked unless you want to show unavailable products.
  6. Save changes.

Open a product page with products in the same category. The block appears after the product summary. Add a product to the cart and open the cart to verify the cart recommendations.

The two main display controls are:

  • Number of products, from 1 to 12.
  • Columns, from 1 to 6.

Most stores should start with 3 or 4 products. More than that can push the main buying path too far down the page.

Use the shortcode when you want to place the block yourself:

[pair_recommendations]
[pair_recommendations strategy="tags" count="4" columns="4"]
[pair_recently_viewed count="4" columns="4"]

On a product page, [pair_recommendations] uses the current product. Elsewhere it uses the current cart contents. strategy accepts related, tags, bestsellers, newest or recently.