related products in blog post
So this is an important question for Drupal Commerce: What is the best practice way of creating a related products block per content type?

Fortunately, there's a simple answer. Just add an entity reference field that references the product displays:




Add an entity reference field called "Related Products" on your blog content type.
Configure this field to only show the product displays (not product entities).
Hide this field on the "Manage Display" tab.
Create a view block that targets your blog content type.





Edit the view and add a contextual filter for "Node ID" and provide the default value to come from the URL. This will allow the block to bring in the node you are viewing if you are viewing your blog post.
Add a relationship on the "Related Products" field you added to your blog content type and rename it "Related Products" and require that relationship.
Add a field, it should be your product reference field for your product display. For me, it's called "Product" but it could be called something different depending on your setup. NOTE Make sure you set it up to use your new relationship.
Modify the title to use your new relationship.
Set the View Block to display in a sidebar or some region that is available on blog posts.




And BAM! there you have it! A step-by-step to show off related projects in a block on your blog posts.