Customising the "Products" page (admin/commerce/products)

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.
Click on the gear in the right top corner, to have the hyperlink 'Edit view' appear.

Improved Workflow for adding products using views.

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:

  1. 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.
  2. 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).
  3. Add a relationship for "Commerce Product: Node referencing products from [your_prudct_ref_field]."
Subscribe with RSS Subscribe to RSS - products