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 |
|
Title (admin) | Products |
Link label (frontend) | Store |
Option key |
|
The Store label is hardcoded — it is not affected by the active theme.
To enable, disable, or reorder the Store section across team pages:
Go to SportsPress → Settings → Teams.
Find the Products template row.
Drag to reorder, or untick to hide.
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:
Copy the file to
your-theme/sportspress/team-products.php.Edit your theme copy. SportsPress's template loader will pick it up automatically.
