There is currently a "product page" that contains combobox with the different variation values for that product category, but I'm curious if it's possible to add a table display to the product page to show all variations of that category within a table so a user can see what's available instead of manually drilling into every combobox?
-
Hello. Isn't it a kind of duplicate of drupal.stackexchange.com/q/40060/16495 ?– MołotCommented Nov 19, 2013 at 11:02
-
NO, I like something like this koenig-dl.com/course-calendar.aspx– YuseferiCommented Nov 19, 2013 at 12:05
-
Well, they certainly looks similar :) Hope answer to that older one will be helpful for you and provide a bit of guidance.– MołotCommented Nov 19, 2013 at 12:07
-
I dont get my answer from it , I found this very useful drupalcommerce.org/questions/8979/… , but I have problem in contextual filter ( I cant see video because band width limit and low speed ). can u explain more how can I create a block that show product variation in product display content type?– YuseferiCommented Nov 19, 2013 at 12:30
-
Sadly, no. And I didn't vote to close as a duplicate, I just remembered I have seen something similar, so I asked in first comment. Sorry to hear it wasn't helpful.– MołotCommented Nov 19, 2013 at 13:03
2 Answers
Yes. Use Commerce Add to Cart Extras for this. It gives you the ability to add an add-to-cart checkbox on a Product view so that you can add one or more products to the cart. You can see a demo of that functionality.
-
1There is also a video we did at Commerce Guys that walks you through setting this up for a pretty standard product display: youtu.be/x7SRieMp0Bk?t=2m40s Commented Jan 4, 2016 at 15:27
Create a view with base table "Commerce product. "
Add necessary fields. Title, Price, Add to cart form, etc will be essential.
Add Relationship "Commerce Product: Referencing Node".
Add Contextual filter "Content: Nid". This view will list the products referenced by a product display node.
Install module Viewfield.
Add a view field to the product display content type, and set the view created in the first step as default value. Give
[node:nid]
as argument.Configure the node display as you please.