Today I'll explain, how we've build our own Inline Conditions in order to support Commerce Discount rules based on taxonomy terms of product display nodes.
When defining product display node types and product entity types in Drupal Commerce, it can be a hard decision where to put taxonomy term reference fields like the product category to. In this post, I try to sum up arguments from different perspectives and give some helpful advice in finding the right decision for you shop project.
There's a great tutorial on drupal.org, written by Jim Bova, explaining how to create a "related products" block in Drupal Commerce. While I was building a similar Views block based on this tutorial, I've found some improvements that are imho both cleaner and more performant, completely relinguishing the use of Views PHP module.