Perhaps you've deemed this to be outside the scope of CK, but often when I'm managing products, I'll unpublish ones that I don't currently have available, but might again in the future.

In that situation, I don't want these items to show up in the displays or search pages.

The view display_products from the commerce_kickstart_search feature should by default only display published products.

CommentFileSizeAuthor
#5 display_products_view-2264127-5.patch2.87 KBmglaman

Comments

lsolesen’s picture

Are you unpublishing product displays or products.

rootwork’s picture

Product displays, I guess. That's why it's useful -- when I went a whole set of product variations along with the product to be taken off. It's much easier to unpublish one product than set 20 variations to "disabled"

It's also worth noting that the other default Commerce Kickstart views (like say categories) do filter to only published nodes. So the search view should as well, in my opinion.

lsolesen’s picture

Priority: Normal » Major

This is confirmed and setting to major.

Behat test: https://travis-ci.org/lsolesen/commerce_kickstart/builds/24902091

mglaman’s picture

Issue tags: +sprint
mglaman’s picture

Status: Active » Needs review
StatusFileSize
new2.87 KB

Build: https://travis-ci.org/commerceguys/commerce_kickstart/builds/72152075

Test from lsolesen, and update to view.

  • mglaman committed df5c2a7 on 7.x-2.x
    Issue #2264127: display_products view should filter out unpublished...
  • mglaman committed f7f1ded on 7.x-2.x
    Merge pull request #139 from mglaman/2264127-hide-unpublished-from-...
mglaman’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.