I know this may be very basic but I can't seem to figure out a way to hide a product that I've got set up in Drupal Commerce. I'm new to Drupal so thanks for your patience.

I am using the Expressa theme. In the product's edit screen, I go to 'Status' and choose 'Disabled' which prevents them from being added to carts (instead of Add To Cart, it displays 'Product Not Available' in the store) but it doesn't actually remove it from Product Display in the store. I've set the stock status to 0 on these products and made sure that they are not being displayed as 'Featured' yet they still show up.

Is there a simple setting where I can keep the product in the backend, in case I want to activate it later, but hide it from the store?

I've also navigated to the content list, found the list of content, checked all the relevant products and unpublished them.

Thanks for your help!

  • Add filter "Content: Nid " set filter value is not equal to your node ids – user59414 Feb 13 '18 at 12:26

In Drupal Commerce, to prevent a product displaying on the front end you either.

  1. Unpublish the product display node (the node referencing that product)
  2. Remove the product from the product_reference field on the relevant product display node.

Not displaying certain products seems to be a two-step process. First, unpublish the product in its Publishing options.

Unpublish the product node

Then you also need to create a Filter Criteria in the products list that respects the node's published status.

Filter unpublished products


If you are using Featured as a Boolean field you can add this in the views filter options. Go to the view add the field featured in FILTER CRITERIA like below

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.