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

Product Select attribute first

Within my product display I have various products some with the same title and varying other attributes.

I have found that no matter what I do the additional attributes always display first then if there different products associated then I get the select product option.

What I want to do though is for the customer to be able to select the product first then adjust their choice using the other attributes.

Is this possible and if so how can this be done. I've even tried altering the weight of the attributes using form alter but makes no difference.

Asked by: dottodotdesign
on October 28, 2013

1 Answer

Vote up!
0
Vote down!

From my experience you are looking at the proper setup.

For mine:

I have an event registration system that users can register and purchase for. There are times that each event is taking place at different locations and also there are attributes associated with each location such as childcare needed, etc.

So I have more than one product added, but the attribute and other fields I am seeing are related to that product, if I switch to another location(product) the attributes I now see are related to that product.

I think you are all set, that is how they show unless you are not adding the product attributes to the product type and instead are adding them to the product display.

Travis
Answer by: Travis
Posted: Oct 31, 2013

Comments

OK but if for example your product has no attributes and your product display contained various products all with different titles you would see a select product option as an attribute. If you then add attributes to these products as well, these are displayed first with the product title option showing depending on what attributes are selected.

I want to be able to select the product by title first then by attributes.

- dottodotdesign on October 31, 2013

Ok so here's a screenshot of my product variations

https://www.dropbox.com/s/tbjwbv2dw9v57pf/Screen%20Shot%202013-11-02%20a...

where quantity and curing method are my 2 attributes and then I have various products, some of which have the same title.

However when you first load the product display I only see the attribute options like this

https://www.dropbox.com/s/soa4411l4xjbt96/Screen%20Shot%202013-11-02%20a...

and the product selection option only appears when there are multiple variations title based on the attributes selected, like this

https://www.dropbox.com/sh/i0h1391dplplcd4/1TyGLaZIfq

- dottodotdesign on November 2, 2013

The product selection will only appear if you have more than one product variation attached to the product display, if you only have 1 product variation attached, you will only see the attributes since there are no other products to select from. "based on the attributes selected" is a little confusing because there are no conditions that enable a different product if you select another products attribute.

- Travis on November 2, 2013

Ok maybe I need to rephrase my original question as if this the default behaviour for DC then I need to find a way to override it as it doesn't work in certain scenarios.

Here's my usage based on product display called Fruit with various bag weights

Apples
--2kg
--5kg
--10kg

Oranges
--5kg
--10kg

Bananas
--5kg
--10kg

In the current setup this would load with just the weight attribute showing as there is only 1 product variation for 2kg Apples, only when you change the weight to 5Kg or 10kg would you see the product option.

From an end user point of view this makes no sense, you'd expect to be able to choose your fruit then the weight.

- dottodotdesign on November 2, 2013

Yeah see what your saying doesn't make sense to me.

The Product variation is the Apple, the weight is the Attribute. "there is only 1 product variation for 2kg Apples" doesn't make sense since there is no product variations for the weight, the weight is the attribute of the product variation.

So your scenario should work like this:

  • Product Display node: Fruit
  • Attached to Product Display: 3 Product Variations (Apples, Oranges, Bananas). These will show as a dropdown on the product display node
  • The first added product variation will display as default. So in this case you will see Apples selected, and the weight dropdown for the apples.
  • Selecting the weight does not change anything, as its just an attribute for the product.
  • Selecting a different fruit product variation bring up a new weight selection box
- Travis on November 2, 2013

Yes I know it's probably not the normal way to do it but it's how the people I'm building the site for want it.

Yes you are correct on how my scenario should work.

- dottodotdesign on November 3, 2013

Well lets get this working for you. I think the confusing part for me is your setup sounds perfect until you get into the use. So can you explain the user flow for what you are looking for?

Such as:

- How does the Product Display work for you? Are you creating nodes called Fruit or nodes called Apples?

- Are the Products setup as individual fruits or are they literally variations of the same Product Display (As in Apples for the Product Display, and each Product Variation is ONLY the weights you are selecting)?

- After answering the above, what is the user path one would take in order to order something from the site?

- Travis on November 3, 2013

Ok the fruits was just an example, but it it would be a product display called Fruit and a variation is added for each fruit of each weight

If you want may actual usage I have a product display called chemicals, which contains various type of chemicals (products) with 2 attributes quantity/weight and curing method. Here's and screenshot of the products within the display https://www.dropbox.com/s/tbjwbv2dw9v57pf/Screen%20Shot%202013-11-02%20a...

In terms of the process for the user, I would expect the user to view the product display, select the name of the product that they want, then select any available attributes associated to the selected product.

- dottodotdesign on November 3, 2013

Sounds like your use case is exactly how I mentioned the setup would be. But because you have completely separate products for each weight, that won't happen. Do you need to have separate SKUs and Products per weight? Or can you have Accelerator G with 3 weights to choose from as a simple attribute? Right now you have 3 separate AGs products with 1 per weight.

If you need it to be that way, you could:

1) Create a Chemicals node called Accelerator G
2) Add the 3 product weight variations, alter their Variation Title so its clear which one you are selecting ("Accelerator G - 4kg")

If you need to have a single node called Chemicals, from the sounds of it thats what you are doing and attaching all products to it, you can do the same thing, just alter the variation title so its clear what they are picking.

If they need to be separate products, then you should just remove the Attribute because that's not how an attribute would be used and having it show up will be confusing for the user. If you still need to report the weight in a separate field, you can, but as a standard text/weight field instead of an attribute.

- Travis on November 4, 2013

Thanks for all your advise on this. I ended up finding a solution, whilst probably not the cleanest of solutions, it works. Basically I've added a Taxonmony vocabulary which will hold the product titles, this can then be used as an attribute which then produces the desired result.

- dottodotdesign on November 23, 2013