| 开发者 | prototipo88 |
|---|---|
| 更新时间 | 2026年6月7日 22:41 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[fbtwoo_form product_id=""] embeds the widget on any page, post, or custom template[fbtwoo_form product_id="42"]
| Parameter | Default | Description |
|---|---|---|
| product_id | Current product | ID of the product whose FBT widget to display |
| title | "Frequently Bought Together" | Custom heading for the widget |
| class | empty | Extra CSS class(es) added to the widget wrapper |
| style | empty | Inline CSS styles for the widget wrapper |
Yes. WooCommerce must be installed and active. The plugin will not activate without it.
Yes. The plugin declares full HPOS compatibility and uses the WooCommerce order API throughout, so it works correctly whether you use the legacy post-based order storage or the modern custom order tables.
You set a discount per product in the product editor. When a shopper adds the complete bundle (the main product plus all linked FBT products) to the cart, the plugin automatically applies a negative cart fee labeled "Bundle Discount". If the shopper removes any item from the bundle, the discount is removed immediately. No coupon code is needed.
The plugin does not auto-generate suggestions. You configure the "Frequently Bought Together" products manually for each product in the product editor. This gives you full control over which products are recommended together — you know your catalog and your customers better than any algorithm does. Open any product, go to the Frequently Bought Together tab, and use the search field to pick the companion products you want to show alongside it.
Yes. Use the shortcode [fbtwoo_form product_id="42"] (replace 42 with your product ID) to embed the widget anywhere a shortcode is accepted: pages, posts, custom templates, or page builder blocks. The widget inherits all your global style settings.
Yes. The Style tab in RIACO FBT > Settings lets you configure button colors (normal and hover states), button text colors, the savings text color, the widget box background color, padding, and border radius — all through color pickers and number inputs, no code required. For deeper customization you can also add your own CSS targeting the .fbtwoo-form-container wrapper.
Two layout presets are available: Default (products displayed in a horizontal row) and Stacked (products displayed in a vertical list). Switch between them in RIACO FBT > Settings > Layout. Both layouts are responsive.
The Analytics dashboard (under RIACO FBT > Analytics) records:
No. On the frontend, FBT product data is stored in the WordPress object cache after the first load, so repeat requests do not hit the database. Analytics impressions are tracked asynchronously via AJAX so they do not block page rendering. The plugin loads its assets only on product pages where the widget is active.