2
Answers
Vote up!
0
Vote down!

Multiple products per display

I have a group of different products that share a single product display where all should be shown but the add to cart form on the display shows the different productos on a dropdown and I need to set up different add to cart buttons for each one and all visible from the displa as a list.

I set up a view (unformatted list) with the product display fields, the product reference as a relationship so I can have the add to cart form, the result is showing every product ok but the actual add to cart button still shows a drop down with all the products referenced on the display.

This seems like something really easy so I gess I'm missing something really obvious.

Any help will be much apreciated.

Asked by: Mariu
on March 3, 2014

2 Answers

Vote up!
0
Vote down!

What you want is to choose a different way to display your cart form. This usually involves downloading or creating a module that hook_form_alter()s the form in some way that makes more sense to your use case. Couple of modules that will make this easier for you:

https://drupal.org/project/commerce_add_to_cart_extras

This one allows you to show a table of available products and a set a quantity for each one.

https://drupal.org/project/commerce_add_to_cart_radio

This one lets you create a view of product entities and simply add only one of those products to your cart at a time (sounds just like what you wanted, no?).

https://drupal.org/project/commerce_views_display

This one also seems like it is right up your alley, uses Views to display products.

EDIT: Also ... found this video I did awhile ago...

Josh

Josh Miller
Answer by: Josh Miller
Posted: Mar 7, 2014
Vote up!
0
Vote down!

Thank you so much,
actually Commerce Views Display seems at first glance to be what i was looking for.

At first I did try to set up a view with just productos but anonymous users couldn`t see anything if I didn't change premissions to see all products products and this didn't seem like such a good idea, I will see how this module solves this issue!

I did go ahead and had one display per product to be able to solve this last week but I am going to try this module to see if it works better and solves some complaining from the guys that actualy have to create a display every time they create a product.

Thank you again and I will let you know how this works!

Answer by: Mariu
Posted: Mar 10, 2014