I've seen discussion about adding for filter, but not a direct request to add for fields. It would be helpful to have "Order product: Attribute: whatever_attribute" in the fields selection for a view as well as in the filter. This way these are sortable and (hopefully with Views Bonus Pack 1 for Drupal 6) export to csv.

Comments

madsph’s picture

I am not saying that this can't be done - but the data model for order products makes it pretty hard to implement, since the attributes are stored as a serialized array among much other stuff in the data column in the database.

japanitrat’s picture

I thought, this would be already available, but it isn't obviously.

I also wonder what the fields "Product attributes" and "Attributes" actually do, since I get no output on a given product node with associated attributes/options. I am using Views2 (newest release) and Ubercart2

mgladding’s picture

I am really interested in seeing support for this. I need the ability for site users to see who else is registered for a particular event.

wqmeng’s picture

subcribe,

royger’s picture

I'm also interested, if they are already displayed in the "Filter" section it shouldn't be difficult to add them to the "Fields" section too (I think).

adpo’s picture

subcribe

nigelcunningham’s picture

subscribe

jasonawant’s picture

Ubercart order product: Product attributes returns an unordered list of attributes associated with an ordered product.

summit’s picture

Subscribing, greetings, Martijn

jerry’s picture

Subscribing.

jddeli’s picture

Version: 6.x-3.x-dev » 6.x-2.0
Component: Code » Miscellaneous
Category: feature » task
Priority: Normal » Major
Status: Active » Needs work

i have a client that have a product salats and a attribute small, big. I cant show in my view the attribute prices.
I want to show
title small big Buy it now button
salat mexikan 10.00euro 15.00 euro buy now
How can show this

sokrplare’s picture

Version: 6.x-2.0 » 6.x-3.x-dev
Component: Miscellaneous » Code
Category: task » feature
Priority: Major » Normal
Status: Needs work » Active

@jddeli - probably best to open a new ticket for your issue since it isn't directly related to this one. I'm going to reset the issue settings accordingly since this should really be for 3.x.

+1 for this addition too - we're having the clients download Excel feeds of the View and the unordered lists of attributes are not very user friendly unfortunately.

mattkaneart’s picture

Including this temporary work-around so that others might benefit from my time. Be sure you have loaded the product attributes as a field.

Use a Global:PHP field. Here's some code to put in the "OUTPUT CODE:" field-- which grabs the option of a product attribute I have called "Color"

$str = $row->attributes;
$arr = unserialize($str);
print_r($arr[attributes]['Color'][0]);

This will return the option value-- so if the product purchased were blue-- that's what it would return.

coolbits’s picture

Assigned: Unassigned » coolbits

Subscribing.

mgladding’s picture

I know this is an older post, but any help would be appreciated!

I am using the code in #13 to successfully output the value of a text field, but I can't get it to output the value of a select list.

Any ideas?

hockey2112’s picture

Issue summary: View changes

I know this post is very old, but I was hoping someone can provide me with a Drupal 7 version of the code snippet in #13 above. Can anyone help?

Thanks!