f12-woo-accessoires folder to /wp-content/plugins/, or install via Plugins > Add New > Upload Plugin.| Requirement | Minimum |
|---|---|
| WordPress | 5.8 |
| WooCommerce | 6.0 |
| PHP | 7.4 |
The Dashboard is the starting page when you open Forge12 Accessories in the admin menu. It provides a quick overview of your accessory configuration.
| Stat | Description |
|---|---|
| Products with Accessories | Number of products that have at least one accessory assigned. |
| Unique Accessories | Total number of distinct products used as accessories. |
| Total Assignments | Sum of all product-to-accessory relationships. |
| Features Active | Number of enabled features on the Features page. |
Shortcuts to the most important plugin pages: Settings, Features, Overview, and the WooCommerce product editor.
Accessories are assigned on the product edit screen in WooCommerce.
The unified accessory picker provides:
| Field | Description |
|---|---|
| Optional Accessories | Products that customers can optionally add to their cart. |
| Custom Title | Override the global section title for this product. |
| Custom Description | Override the global section description for this product. |
You can assign accessories to entire product categories. All products in that category will automatically display the assigned accessories.
Navigate to Forge12 Accessories > Optional Accessories to configure the display of optional accessories.
| Setting | Description | Default |
|---|---|---|
| Enable Accessories | Globally enable or disable optional accessories on the frontend. | Enabled |
| Position | Where accessories appear on the product page. | Before product data tabs |
| Layout | Choose how accessories are displayed. See Layouts. | Grid |
| Grid Columns | Number of columns for the grid layout (2, 3, or 4). | 4 |
| Title Type | HTML heading tag (h2–h6 or p) for the section title. | h2 |
| Title | Custom heading text displayed above the accessories. | — |
| Description | Text displayed below the heading. | — |
| Position | Description |
|---|---|
| Before Add to Cart (Inline) | Compact checkbox list between the price and Add to Cart button. Uses the Inline layout. |
| Before product data tabs | Between the product summary and the description/reviews tabs. |
| Before upsells | Below the product tabs, before WooCommerce upsells. |
| Before related products | Below upsells, before WooCommerce related products. |
| After related products | At the very bottom of the product page. |
The default layout. Accessories are displayed in a responsive product grid using WooCommerce's standard product card markup. Configurable from 2 to 4 columns.
A single-column list layout. Each accessory is shown in a full-width row with image, title, price, and Add to Cart button.
A "Frequently Bought Together" style layout with checkboxes. Features include:
A compact layout designed for the "Before Add to Cart" position. Characteristics:
The following layouts are available with the Pro add-on:
| Layout | Description |
|---|---|
| Slider Pro | Responsive carousel with autoplay, configurable slides per view, and navigation arrows. |
| Accordion Pro | Collapsible panels grouped by product category. Options: open first item, single open mode. |
| Tabs Pro | Tab navigation grouped by product category. |
Control which product details are shown for each accessory item. These toggles are available in the Display Options section of the Optional Accessories settings.
| Option | Description | Default |
|---|---|---|
| Show Product Image | Display the product thumbnail. | On |
| Show Product Title | Display the product name. | On |
| Show Price | Display the product price. | On |
| Show Star Rating | Display the WooCommerce star rating. | Off |
| Show Add to Cart Button | Display the Add to Cart button. | On |
| Show Stock Status | Display stock availability (In stock / Out of stock). | Off |
| Show Short Description | Display the product short description. | Off |
| Show SKU | Display the product SKU. | Off |
| Max Accessories | Maximum number of accessories to display (0 = unlimited). | 0 |
Display accessories from cart products on the cart page to encourage additional purchases.
Navigate to Forge12 Accessories > Cart to configure.
| Setting | Description | Default |
|---|---|---|
| Enable in Cart | Show accessory suggestions on the cart page. | Off |
| Title Type | HTML heading tag for the cart section. | h2 |
| Title | Custom heading text. | — |
| Description | Text displayed below the heading. | — |
The Design System lets you customize the visual appearance of all accessory sections. Navigate to Forge12 Accessories > Design.
| Color | Usage | Default |
|---|---|---|
| Primary | Buttons, active states, links | #258dc8 |
| Primary Hover | Button hover states | #1a6fa0 |
| Text on Primary | Text on primary-colored backgrounds | #ffffff |
| Background | Section and card backgrounds | #ffffff |
| Border | Card and section borders | #e0e0e0 |
| Text | Body text color | #333333 |
| Price | Price display color | #111111 |
| Badge / Highlight | Badges and highlight elements | #4caf50 |
| Setting | Description | Default |
|---|---|---|
| Border Radius | Corner rounding for cards and buttons (0–20px). | 8px |
| Box Shadow | Enable or disable card shadows. | On |
Choose from four preset themes to quickly style your accessories:
Fine-tune the appearance of individual elements. Each element supports:
| Element | Description |
|---|---|
| Container | The outer wrapper of the accessories section. |
| Card | Individual product cards in the grid/list. |
| Heading | The section title (e.g., "Optional Accessories"). |
| Description | The section description text. |
| Product Title | Product names within accessory cards. |
| Price | Price display within cards. |
| Button | Add to Cart buttons. |
The Design page includes a live preview panel that updates in real time as you adjust settings. This lets you see exactly how accessories will look before saving.
--f12-color-primary). Theme developers can override these in their stylesheets for full control.
The Features page (Forge12 Accessories > Features) lets you enable or disable individual features. Only enabled features load their code, keeping the plugin lightweight.
| Feature | Description |
|---|---|
| Gutenberg Block | Place accessories on any page or post using the WordPress block editor. |
| Stock Alerts | Show stock status badges (low stock, out of stock) on accessory items. |
| Product Preview Modal | Open a quick-view lightbox when clicking an accessory image. |
| Accessory Grouping | Group accessories by product category with tab navigation. Only appears when accessories span 2 or more categories. |
| Recommended Badge | Mark specific accessories as "Recommended" with a customizable badge. Use the star icon in the product editor to toggle. |
| Feature | Description |
|---|---|
| REST API | Expose accessory data via WooCommerce REST API endpoints. |
| Schema.org Markup | Add isAccessoryOrSparePartFor structured data for search engines. Requires the REST API feature. |
| Feature | Description |
|---|---|
| Bulk Assignment | Assign accessories to multiple products at once. Filter by category or select products individually. |
| Inventory Check | Dashboard overview showing all products and their accessory assignments with stock-level warnings. |
| Import / Export | Export and import accessory assignments via CSV files for bulk management. |
Each feature on the Features page includes an info tooltip with a detailed description of what it does and any dependencies.
The Overview page (Forge12 Accessories > Overview) provides a reverse lookup: see which products and categories use each accessory.
Use the shortcode to display accessories anywhere on your site:
[f12-woo-accessories]
Place this shortcode on any page, post, or widget area. On product pages, it will display the accessories configured for that product. The shortcode respects all settings from the Optional Accessories page (layout, display options, etc.).
All frontend templates can be overridden from your theme. Copy the template file from the plugin into your theme directory and modify it.
Copy from:
wp-content/plugins/f12-woo-accessoires/templates/{template-name}.php
To:
wp-content/themes/your-theme/f12-woo-accessoires/{template-name}.php
| Template | Used For |
|---|---|
woo-accessories.php | Grid and List layouts |
woo-accessories-checkbox.php | Checkbox (Frequently Bought Together) layout |
woo-accessories-inline.php | Inline layout (Before Add to Cart) |
woo-accessories-cart.php | Cart crossselling section |
woo-accessories-modal.php | Product preview modal (lightbox) |
| Template | Used For |
|---|---|
admin-bulk-assignment.php | Bulk assignment admin page |
admin-inventory-check.php | Inventory check admin page |
admin-import-export.php | Import/export admin page |
| Hook | Description |
|---|---|
f12_woo_accessories_init | Fired after plugin bootstrap. Parameters: $Accessories, $UI. Used by the Pro add-on to initialize. |
f12_woo_accessories_before | Fired before the accessories container is rendered. |
f12_woo_accessories_after | Fired after the accessories container is rendered. |
f12_woo_accessories_item_badge | Render a badge on each accessory item (used by Recommended Badge and Stock Alerts). |
| Filter | Description |
|---|---|
f12_woo_accessories_products_heading | Customize the section heading text. Parameters: $title, $product_id. |
f12_woo_accessories_products_description | Customize the section description text. |
f12_woo_accessories_container_attrs | Add custom HTML attributes to the accessories container element. |
f12_woo_accessories_item_attrs | Add custom HTML attributes to individual accessory items. |
f12_woo_accessories_item_class | Add custom CSS classes to individual accessory items. |
f12_woo_accessories_cart | Modify the list of accessories for cart crossselling. |
f12_woo_accessories_cart_heading | Customize the cart section heading. |
f12_woo_accessories_cart_description | Customize the cart section description. |
f12_woo_accessories_is_premium | Returns true when the Pro add-on is active with a valid license. |
All design settings are available as CSS variables on the :root element:
/* Colors */
--f12-color-primary
--f12-color-primary-hover
--f12-color-primary-text
--f12-color-bg
--f12-color-border
--f12-color-text
--f12-color-price
--f12-color-badge
/* Layout */
--f12-border-radius
--f12-box-shadow
/* Element-specific (examples) */
--f12-heading-font-size
--f12-heading-font-weight
--f12-heading-color
--f12-card-padding
--f12-container-margin
--f12-button-font-size
/* ... and more for each element */
Yes. Accessories can be assigned to any product type including simple, variable, grouped, and external products.
By default, yes. If you enable the Stock Alerts feature, out-of-stock accessories will display a badge. WooCommerce's own stock settings control whether customers can still purchase them.
Yes. A product can be an accessory for any number of other products. Use the Overview page to see all assignments for a specific accessory.
They are merged. If a product has its own accessories and also belongs to a category with accessories, both sets are displayed. Duplicates are automatically removed.
The plugin uses CSS custom properties for all styling. You can override any variable in your theme's stylesheet. Alternatively, use the Design System to adjust the appearance without writing CSS.
Contact us at info@forge12.com or visit forge12.com.
© Forge12 Interactive | forge12.com