I have 'products' that are paid listings on a classified site. Attributes on the product are things like 'features' and 'highlighted' to improve the visibility of the item being sold.

What I'd like to do is create a view that filters the Node Checkout node's by the Order's Attributes.

I'm using the current versions of UC, UC Node Checkout and UC views. I've been playing around in views for a bit now, but I can't seem to generate the view I need.

Has anyone produced something similar? I'm pulling in the Order ID into the actual node on checkout, so I suppose I could write some PHP to grab the order ID and get the attributes that way, but I'd prefer to keep it in views if possible.

Any help would be appreciated!

Thanks,

Drew

Comments

bsandor’s picture

I am not sure at all but you tried Ubercart Views Attribute yet?

Edwige K’s picture

Hi drewbolles

I've exactly the same problem.
Did you find a solution?

EDIT:
Now, it's OK for me.
First, I found a patch for create views relationships between node and ubercat order product http://drupal.org/files/issues/uc_node_checkout-views_3.patch but as it has been include in uc_node_checkout 6.x-2.x-dev, I take this version.

But there is another problem in views' SQL Query when using Ubercart order product: Attribute: my-attribute.
The search in the Query is not based on my-attribute (the name of the attribute) but on My Attribute Label (the label of the attribute).
So, I give the same label an name, with the same case, and then Filter is OK.