Tags/topics: 
1
Answers
Vote up!
0
Vote down!

New Display Product View doesn't look like CK2 View?

Trying to learn from Commerce Kickstart2 but ran into a wall. I created a new Product Type and added both Product Variations and Product Display (yay!). I cloned the View "Display Products (Product display)" and must have accidently changed something because my page is the plain Drupal Node page.

1. How do I create a Catalog Page View like CK2 product category page and
2. How do I get my new Product Type (looks like this) to use this view?

Thanks in advance.

Judi
"Really, I just touched it!"

Asked by: Judikins
on December 16, 2013

Comments

Oh one more thing, I don't want to clog the posts here but should I post the Views code??
Actually better yet, here is the Views exported.

- Judikins on December 16, 2013

1 Answer

Vote up!
0
Vote down!

To fully answer your question would take a fair amount of work. The quick answer is that you need a display formatter to use in your catalog view. This is implemented in the module called "commerce_kickstart_product_ui" that is found in the profiles/commerce_kickstart/kickstart/ folder.

The part you need is called "Node: Product List." You can take a look at that module to see how it's done in Kickstart.

My thought? I would use Views to show fields instead of node rendering and not worry as much about a display formatter, but it's not how kickstart 2 is built.

Josh

Josh Miller
Answer by: Josh Miller
Posted: Dec 17, 2013

Comments

Great, I will try creating the view with fields.

So why did the CGs write the module to use node rendering? There must be a good reason. And, what exactly is node rendering? I've tried to find an answer but I can't find one.

Thank You!!
Judi

- Judikins on December 18, 2013

Judi,

I'm not 100%, but I believe it is more performant to have Views render node displays as opposed to pulling in all the fields with all the relationships. This is not the "only way" you can do it, but it is a valid way of making a view produce a rich HTML result. If you don't want to use a custom module to do this, you can use Display Suite to create your own display modes for nodes in the interface:

https://drupal.org/project/ds

- Josh Miller on December 18, 2013