Skip to main content

WooCommerce Settings and Configuration

The WooCommerce extension does not add a dedicated settings page. Configuration is driven by product-to-team assignments and the SportsPress template section system.

WooCommerce Settings and Configuration

The WooCommerce extension does not add a dedicated settings page. Configuration is driven by product-to-team assignments and the SportsPress template section system.
​

Product assignment

Each WooCommerce product gains a SportsPress meta box on the product edit screen. The meta box contains a multi-select Teams field listing every team in your SportsPress install.
​

  • Selecting one or more teams associates the product with those teams.

  • A product can be assigned to any number of teams (e.g. a league-branded scarf can appear on every club's page).

  • Removing the product from the teams list will hide it from those team pages on the next render.

Store template section

The plugin registers a products section in the team template stack via sportspress_team_templates:
​

Property

Value

Template key

products

Title (admin)

Products

Link label (frontend)

Store

Option key

sportspress_team_show_directories

The Store label is hardcoded — it is not affected by the active theme.
​

To enable, disable, or reorder the Store section across team pages:
​

  1. Go to SportsPress → Settings → Teams.

  2. Find the Products template row.

  3. Drag to reorder, or untick to hide.

  4. Save.

Admin screen integration

The plugin extends SportsPress's sportspress_screen_ids filter to include edit-product and product. This means SportsPress admin scripts and styles load on WooCommerce product list and edit screens, ensuring the SportsPress meta box renders correctly.
​

Customising the Store template

The Store section uses templates/team-products.php from the plugin folder. To customise:
​

  1. Copy the file to your-theme/sportspress/team-products.php.

  2. Edit your theme copy. SportsPress's template loader will pick it up automatically.

Did this answer your question?