Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The step described in this page is not at all necessary. If you want to customise the products list presented on page admin/commerce/products , first go to modules: Views, and enable the "Views UI" module.
Then go to store → products , click on the gear at the right top corner of the page, then on "Edit View", because the product list page is produced by the Views module.
For my site, I wanted to be able to add products to the store, then have a copywriter add the product display nodes. Unfortunately there is no built in way to provide a list of commerce products ready to be referenced. This represents a hole in the workflow for adding products which can be addressed by a simple view.
Goals:
Provide a list of products that were not yet referenced by any product display node.
Provide a link to quickly add a product display referencing the product.
To accomplish this you will need:
Views 3.x
prepopulate module (7.x in dev) - enabled
Steps:
Start by creating a new view. For "show" select "Commerce Product" and "type" your product type. Provide a page with the URL of your choice and display format set to "table" and leave everything else as default.
Add the fields you would like to show. At the very least you should have "Commerce Product: Rendered ..." to show the title with a link to the product and the Product ID field (which will be used later - you can hide it from display if you want, but it will need to be in your view).
Add a relationship for "Commerce Product: Node referencing products from [your_prudct_ref_field]."