Bought together

ps_get_bought_together

Read-onlyContent & SEO and Catalog · writes right awayWorks in TellMyShop FreeVisible right after install

Shows which products customers buy in the same order, without customer data.

TellMyShop Free: Yes. This tool is in TellMyShop Free, which costs nothing. It only reads your store and never changes anything.

Ask Claude

„What do customers buy together with the Oslo sofa? Show the last six months.”

Example answer

Sofa Oslo 3-seat (id:12): Cushion set Nord (id:31) in 9 shared orders, 32.1% of the sofa's orders, not related yet. Throw Hygge (id:44): 6 orders, 21.4%, already related.

Technical details

Pairs of products bought in the same valid order in the last N days (default 180): number of shared orders and what share of the main product's orders that is. Only valid (paid) order states, no customer data; pairs with fewer than min_orders shared orders are skipped. Give a product to see what is bought with it, or a category for main products from that category. The "already related" column shows the current related products. Used before ps_set_related_products.

Parameters

NameTypeRequiredDescription
productstringnoMain product (id:123, ref:ABC-1, ean:..., product URL, ID, EAN or reference). Max 300 characters.
category_idintegernoMain products from this category (with subcategories).
daysintegernoLast N days. Range 7 to 730, default 180.
min_ordersintegernoMinimum number of shared orders for a pair. Range 1 to 100, default 2.
per_productintegernoHow many pairs to show for one main product. Range 1 to 20, default 5.
shop_idintegernoShop ID in a multistore installation. Defaults to the shop in the connector address. IDs are listed by ps_get_shop_info.
limitintegernoMaximum main products (default 20, max 100).
offsetintegernoMain products to skip, for paging (default 0).

Limits

Period 7 to 730 days. Max 100 main products per call, up to 20 pairs each. Only valid orders of the shop; no customer data in the result. With no valid orders in the period the result says so.

Related tools

Last updated: 2026-10-11