When I enable commerce_backoffice_product , the /admin/commerce/products page no longer lists any products, it just says "No products have been created yet." It also doesn't list all the product types, only the type that's alphabetically first ("Donation"). I also see the warning "No terms found in the provided vocabularies."

Any ideas what could be causing this? Or where (e.g. logs) I could find more information?

-Ken

Comments

frederickjh’s picture

Hi Ken!

I found that not all my products displays were showing.

There is a bug with the Commerce Backoffice Products view. It seems it latches on the the first product type as you said, also in my case donations. It does not show other Product Types. This is because it is using a relationship to filter on the Product type relationship. Looks like it latches on the the first one it finds.

I went to Structure > Views > Commerce Backoffice Products > Relationships and removed the relationship

This shows too much content. So I added a filter. Content: Product display = yes

This will show all Product displays. Using Relationships you can only filter by 1 relationship. If you add 2 relationships and require them then you will get nothing as products cannot be in 2 different display types at one time. If you use 2 relationship you only see products from that display type.

I hope this helps you with your problem!

Frederick

frederickjh’s picture

OK, The above does not allow you to search on the SKU or title.

Do not delete the relationship. Instead remove the tick by Require this relationship. Then add your other Product types under relationships.

I also had to add the Product SKU field to be able to search on it.

Frederick

frederickjh’s picture

OK, well I have given up too much time on this. The above configuration still does not show all product entities only those with a product display.

I have disabled the Commerce Back Office Products module and the modified Commerce Back Office Products view.

I am now using the original Products view.

The original is of type: Commerce Product

while the Back Office view is of type: Content.

Not sure why someone did it that way. If there was an easy way to change the type, which I believe there is not, then that would be the easiest way to use the view I have worked out above but have the type be Commerce Product. At this point I cannot devote the time to rebuilding the view for a site that sells 1 product.

One other note there is no delete link in the Back Office view but the original has one.

God Bless!

Frederick